fix: fix code URL

This commit is contained in:
p-sw 2024-06-02 09:10:17 +09:00
parent 59505faeb6
commit 2ea648da48

View File

@ -3,7 +3,7 @@ import { Label } from "@components/Label";
import { Checkbox } from "@components/Checkbox"; import { Checkbox } from "@components/Checkbox";
import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs"; import { TabProvider, TabTrigger, TabContent, TabList } from "@components/Tabs";
import { Story } from "@/components/Story"; import { Story } from "@/components/Story";
import { LoadedCode } from "@/components/LoadedCode"; import { LoadedCode, GITHUB } from "@/components/LoadedCode";
import { CheckboxDemo } from "./CheckboxBlocks/Preview"; import { CheckboxDemo } from "./CheckboxBlocks/Preview";
import Examples from "./CheckboxBlocks/Examples"; import Examples from "./CheckboxBlocks/Examples";
@ -21,7 +21,7 @@ A control that allows the user to toggle between checked and not checked.
</Story> </Story>
</TabContent> </TabContent>
<TabContent name="code"> <TabContent name="code">
<LoadedCode from={`${GITHUB}/packages/react/components/Checkbox.tsx`} /> <LoadedCode from={`${GITHUB}/packages/react/src/docs/components/CheckboxBlocks/Preview.tsx`} />
</TabContent> </TabContent>
</TabProvider> </TabProvider>
@ -65,7 +65,7 @@ import { Checkbox } from "@components/Checkbox";
</Story> </Story>
</TabContent> </TabContent>
<TabContent name="code"> <TabContent name="code">
<LoadedCode from={`${GITHUB}/packages/react/components/CheckboxBlocks/Examples/Text.tsx`} /> <LoadedCode from={`${GITHUB}/packages/react/src/docs/components/CheckboxBlocks/Examples/Text.tsx`} />
</TabContent> </TabContent>
</TabProvider> </TabProvider>
@ -82,6 +82,6 @@ import { Checkbox } from "@components/Checkbox";
</Story> </Story>
</TabContent> </TabContent>
<TabContent name="code"> <TabContent name="code">
<LoadedCode from={`${GITHUB}/packages/react/components/CheckboxBlocks/Examples/Disabled.tsx`} /> <LoadedCode from={`${GITHUB}/packages/react/src/docs/components/CheckboxBlocks/Examples/Disabled.tsx`} />
</TabContent> </TabContent>
</TabProvider> </TabProvider>