diff --git a/packages/react/components/New/NewLinks.mjs b/packages/react/components/New/NewLinks.mjs deleted file mode 100644 index 726ac5e5600..00000000000 --- a/packages/react/components/New/NewLinks.mjs +++ /dev/null @@ -1,92 +0,0 @@ -// Hooks -import React, { useState, useEffect } from 'react' -import { useAccount } from '@freesewing/react/hooks/useAccount' -import { useBackend } from '@freesewing/react/hooks/useBackend' -// Components -import { Link as DefaultLink } from '@freesewing/react/components/Link' -import { - NewMeasurementsSetIcon, - NewPatternIcon, - ShowcaseIcon, - KioskIcon, -} from '@freesewing/react/components/Icon' - -const NewLink = ({ title, Icon, description, href, Link }) => { - if (!Link) Link = DefaultLink - const linkProps = { - href, - className: - 'tw:p-8 tw:-ml-4 tw:-mr-4 tw:md:m-0 tw:rounded-none tw:md:rounded-xl ' + - 'tw:md:shadow tw:hover:bg-secondary/10 tw:bg-base-200/10 ' + - 'tw:w-full tw:max-w-lg tw:hover:no-underline', - } - - const inner = ( - <> -

- {title} - -

-
- {description} -
- - ) - - return {inner} - return {inner} -} - -const newLinks = { - pattern: { - href: '/editor/', - Icon: NewPatternIcon, - title: 'Generate a new pattern', - description: - 'Pick a design, add your measurements set, and we will generate a bespoke sewing pattern for you.', - }, - set: { - Icon: NewMeasurementsSetIcon, - title: 'Create new measurements set', - description: - 'Create a new set of measurements which you can then use to generate patterns for.', - }, - showcase: { - Icon: ShowcaseIcon, - title: 'Create a new showcase post', - description: - 'Made something from a FreeSewing pattern? Please share the results here to inspire others.', - }, - img: { - Icon: KioskIcon, - title: 'Generate a social media image', - description: - 'Share the FreeSewing love on social media, supports wide, square, and tall formats.', - }, -} - -/** - * The NewLinks component shows all of the links to create something new - * - * @param {object} props - All the React props - * @param {function} Link - A custom Link component, typically the Docusaurus one, but it's optional - */ -export const NewLinks = ({ Link = false }) => { - // Use custom Link component if available - if (!Link) Link = DefaultLink - - // Hooks - const { account } = useAccount() - - return ( -
-
- {Object.entries(newLinks).map(([href, link]) => ( - - ))} -
-
- ) -} diff --git a/packages/react/components/New/index.mjs b/packages/react/components/New/index.mjs deleted file mode 100644 index 59b0a60bb24..00000000000 --- a/packages/react/components/New/index.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import { NewLinks } from './NewLinks.mjs' - -export { NewLinks } diff --git a/packages/react/package.json b/packages/react/package.json index 849a6962947..f2c67fe4f99 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -56,7 +56,6 @@ "./components/Markdown": "./components/Markdown/index.mjs", "./components/Mini": "./components/Mini/index.mjs", "./components/Modal": "./components/Modal/index.mjs", - "./components/New": "./components/New/index.mjs", "./components/Newsletter": "./components/Newsletter/index.mjs", "./components/Null": "./components/Null/index.mjs", "./components/Number": "./components/Number/index.mjs", diff --git a/sites/dev/docs/reference/packages/react/components/new/readme.mdx b/sites/dev/docs/reference/packages/react/components/new/readme.mdx deleted file mode 100644 index 8f14f43b017..00000000000 --- a/sites/dev/docs/reference/packages/react/components/new/readme.mdx +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: New ---- - -:::note -This page is yet to be created -:::