diff --git a/src/components/Design.jsx b/src/components/Design.jsx index ed7b2645..9aa9a1d9 100644 --- a/src/components/Design.jsx +++ b/src/components/Design.jsx @@ -1,23 +1,57 @@ -import React from 'react' -import {useState} from 'react' +import React from "react"; +import { useState } from "react"; -export const Design = ({question,answer}) => { - const [show,setShow]= useState(false); - const [sign,setSign]= useState("+"); - function one(){ +export const Design = ({ question, answer }) => { + const [show, setShow] = useState(false); + const [sign, setSign] = useState("+"); + function one() { setShow(!show); } return ( -
{show?"-":"+"}
+ {show ? "-" : "+"} +
+{answer}
- } - + {show && ( ++ {answer} +
+ )}