diff --git a/components/ButtonLink.jsx b/components/ButtonLink.jsx index 3b71031..01008ab 100644 --- a/components/ButtonLink.jsx +++ b/components/ButtonLink.jsx @@ -2,11 +2,19 @@ import React from 'react'; import PropTypes from 'prop-types'; const ButtonLink = React.forwardRef( - ({ onClick, children, variant }, ref) => ( - - ), + ({ onClick, children, variant }, ref) => { + const classes = ['fr-btn']; + + if (variant === 'secondary') { + classes.push('fr-btn--secondary'); + } + + return ( + + ); + } ); ButtonLink.defaultProps = { diff --git a/components/QuestionSection.jsx b/components/QuestionSection.jsx index bcf0b73..20050fa 100644 --- a/components/QuestionSection.jsx +++ b/components/QuestionSection.jsx @@ -1,3 +1,5 @@ +import Link from 'next/link'; + import ButtonLink from '@/components/ButtonLink'; import styles from '@/styles/components/QuestionSection.module.css'; @@ -8,9 +10,11 @@ export default function QuestionSection() {