diff --git a/src/App.jsx b/src/App.jsx index 12d5ff0..916ce10 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -7,6 +7,7 @@ import ThemeSwitcher from "./components/VictorEZCodes/ThemeSwitcher"; import SearchFilter from "./components/VictorEZCodes/SearchFilter"; import FormValidator from "./components/VictorEZCodes/FormValidator"; import AccordionItems from "./components/kelixirr/AccordionItems"; +import FlashCards from "./components/mektefaie/FlashCards"; function App() { const [showToast, setShowToast] = useState(false); @@ -45,6 +46,7 @@ function App() { /> )} + ); } diff --git a/src/Author.jsx b/src/Author.jsx index 103e858..aa80ea0 100644 --- a/src/Author.jsx +++ b/src/Author.jsx @@ -1,4 +1,4 @@ -import { FaGithub } from "react-icons/fa"; +import { FaGithub } from 'react-icons/fa' export default function Author({ name, githubLink }) { return ( @@ -24,22 +24,22 @@ export default function Author({ name, githubLink }) { (e.currentTarget.style.color = "#0051af")} - onMouseOut={(e) => (e.currentTarget.style.color = "#0070f3")} + onMouseOver={e => (e.currentTarget.style.color = '#0051af')} + onMouseOut={e => (e.currentTarget.style.color = '#0070f3')} > GitHub - ); + ) } diff --git a/src/components/kelixirr/Details.jsx b/src/components/kelixirr/Details.jsx index c72b86a..a6375da 100644 --- a/src/components/kelixirr/Details.jsx +++ b/src/components/kelixirr/Details.jsx @@ -6,8 +6,8 @@ import Author from "../../Author"; export default function Details() { const [count, setCount] = useState(0); - const handleCount = (type) => { - setCount((prev) => { + const handleCount = type => { + setCount(prev => { if (type === "increase" && prev < 20) { return prev + 1; } else if (type === "decrease" && prev > 0) { @@ -73,7 +73,7 @@ import Author from "../../Author"; export default function Cart() { const [count, setCount] = useState(0); - + const handleCount = (type) => { setCount((prev) => { if (type === "increase" && prev < 20) { @@ -88,7 +88,7 @@ export default function Cart() { return ( <>
-