diff --git a/app/components/QuickLink.tsx b/app/components/QuickLink.tsx deleted file mode 100644 index 3b04907..0000000 --- a/app/components/QuickLink.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import type { IconProps } from "./Icon"; - -import { Icon } from "./Icon"; -import { Link } from "./Link"; - -type QuickLinkProps = { - title: string; - description: string; - href: string; - icon: IconProps["icon"]; -}; - -export default function QuickLink(props: QuickLinkProps) { - return ( -
- - ); -} diff --git a/app/components/QuickLinks.tsx b/app/components/QuickLinks.tsx index a054189..b2b46e0 100644 --- a/app/components/QuickLinks.tsx +++ b/app/components/QuickLinks.tsx @@ -1,4 +1,8 @@ import type { JSXElement } from "solid-js"; +import type { IconProps } from "./Icon"; + +import { Icon } from "./Icon"; +import { Link } from "./Link"; type QuickLinksProps = { children: JSXElement; @@ -11,3 +15,28 @@ export default function QuickLinks(props: QuickLinksProps) {
); } + +type QuickLinkProps = { + title: string; + description: string; + href: string; + icon: IconProps["icon"]; +}; + +QuickLinks.QuickLink = (props: QuickLinkProps) => ( +
+ +); diff --git a/app/pages/docs/+Page.mdx b/app/pages/docs/+Page.mdx index 0445a93..6307cd7 100644 --- a/app/pages/docs/+Page.mdx +++ b/app/pages/docs/+Page.mdx @@ -5,12 +5,11 @@ tags: [] --- import QuickLinks from "@/components/QuickLinks"; -import QuickLink from "@/components/QuickLink"; ## Documentations rédigées - -