Skip to content

Commit 812393b

Browse files
committed
fix: use link instead of button for "view source"
1 parent 2a976e1 commit 812393b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

workspaces/website/src/components/ComponentDoc/ComponentDoc.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { components } from "@/app/docs/components";
22
import {
3-
Button,
43
Code,
54
FlexContainer,
65
FlexItem,
76
H2,
87
H3,
98
H4,
9+
Link,
1010
Note,
1111
P,
1212
} from "@shalecss/react";
@@ -34,15 +34,14 @@ export const ComponentDoc: React.FC<ComponentDocProps> = ({ component }) => {
3434

3535
{doc.sourcePath && (
3636
<div style={{ marginBottom: "var(--shale-v1-font-1)" }}>
37-
<Button
37+
<Link
3838
Component="a"
3939
href={`https://github.com/logonoff/shalecss/blob/main/workspaces/react/${doc.sourcePath}`}
4040
rel="noopener noreferrer"
4141
target="_blank"
42-
variant="secondary"
4342
>
44-
View Source
45-
</Button>
43+
View source
44+
</Link>
4645
</div>
4746
)}
4847

0 commit comments

Comments
 (0)