diff --git a/components/ButtonLink.jsx b/components/ButtonLink.jsx index df28afb..3814307 100644 --- a/components/ButtonLink.jsx +++ b/components/ButtonLink.jsx @@ -1,14 +1,22 @@ import React from 'react'; import PropTypes from 'prop-types'; -import styles from '@/styles/components/Button.module.css'; - const ButtonLink = React.forwardRef(({ onClick, children, variant }, ref) => { return ( ); -}) +}); + +ButtonLink.defaultProps = { + variant: "primary", +}; + +ButtonLink.propTypes = { + onClick: PropTypes.func.isRequired, + children: PropTypes.node.isRequired, + variant: PropTypes.string, +}; export default ButtonLink; diff --git a/components/QuestionSection.jsx b/components/QuestionSection.jsx index 29856a6..bcf0b73 100644 --- a/components/QuestionSection.jsx +++ b/components/QuestionSection.jsx @@ -1,5 +1,3 @@ -import Link from 'next/link'; - import ButtonLink from '@/components/ButtonLink'; import styles from '@/styles/components/QuestionSection.module.css'; diff --git a/layouts/BaseLayout.jsx b/layouts/BaseLayout.jsx index bdba4b6..a568569 100644 --- a/layouts/BaseLayout.jsx +++ b/layouts/BaseLayout.jsx @@ -3,9 +3,8 @@ import PropTypes from 'prop-types'; import Head from 'next/head'; -import Image from 'next/image'; import Link from 'next/link'; -import { useRouter } from 'next/router' +import { useRouter } from 'next/router'; import ButtonLink from '@/components/ButtonLink'; @@ -56,22 +55,21 @@ function Header() {
diff --git a/layouts/PresentationLayout.jsx b/layouts/PresentationLayout.jsx index 548f3ee..d390aaf 100644 --- a/layouts/PresentationLayout.jsx +++ b/layouts/PresentationLayout.jsx @@ -91,8 +91,8 @@ export function CardsSection({ ))} - + ); } diff --git a/pages/_app.jsx b/pages/_app.jsx index 4c52d1f..bae5aff 100644 --- a/pages/_app.jsx +++ b/pages/_app.jsx @@ -5,12 +5,8 @@ import React from 'react'; import '@/styles/globals.css'; import '@gouvfr/dsfr/dist/css/dsfr.min.css'; - function MyApp({ Component, pageProps }) { - React.useEffect(async () => { - //const resp = await import('@gouvfr/dsfr/dist/js/dsfr.module'); - const resp = await import('@gouvfr/dsfr/src/main'); - }); + React.useEffect(() => import('@gouvfr/dsfr/src/main')); return ( <>Recevez de nouvelles courses lorsque vous êtes en maraude
Connectez vos taxis à tous les usagers
Proposez aussi les taxis dans votre application grand public
Intégrez le service public des taxis à votre offre locale