diff --git a/public/ImageUsers/6421d8378e4fd27374c7f334_1680519705034.webp b/public/ImageUsers/6421d8378e4fd27374c7f334_1680519705034.webp deleted file mode 100644 index 5d89d78..0000000 Binary files a/public/ImageUsers/6421d8378e4fd27374c7f334_1680519705034.webp and /dev/null differ diff --git a/src/components/layout/dashboard/card_user/CardUser.jsx b/src/components/layout/dashboard/card_user/CardUser.jsx index 4f43063..104e385 100644 --- a/src/components/layout/dashboard/card_user/CardUser.jsx +++ b/src/components/layout/dashboard/card_user/CardUser.jsx @@ -5,57 +5,70 @@ import { CardBody, IconButton, Heading, - Box, CardHeader, -} from '@chakra-ui/react'; -import Carousel from '../../../Carousel'; -import {BiHeart} from 'react-icons/bi'; -import {RxCross1} from 'react-icons/rx'; -import PassionBadgeList - from '@/components/layout/dashboard/card_user/PassionBadgeList'; + Box, + CardHeader, +} from "@chakra-ui/react"; +import Carousel from "../../../Carousel"; +import { BiHeart } from "react-icons/bi"; +import { RxCross1 } from "react-icons/rx"; +import PassionTagList from "@/components/layout/dashboard/card_user/PassionTagList"; export default function CardUser(props) { - const {user} = props; + const { user } = props; const interestingUser = { - lastName: 'dujardin', - firstName: 'jean', + lastName: "dujardin", + firstName: "jean", age: 19, - aPropos: 'Je suis une personne fictive, pas tres fictive', - images: ['/401446.webp', '/135538.webp'], - passions: ['Sport', 'Piscine', 'Formule1'], + aPropos: "Je suis une personne fictive, pas tres fictive", + images: ["/401446.webp", "/135538.webp"], + passions: ["Sport", "Piscine", "Formule1"], }; return ( - + - + - - - {interestingUser.firstName} {interestingUser.lastName}, {interestingUser.age}ans + + + {interestingUser.firstName} {interestingUser.lastName},{" "} + {interestingUser.age}ans - - + + + + + + - - A propos : + + + A propos : + {interestingUser.aPropos} - Passions : - + + Passions : + + ); - } diff --git a/src/components/layout/dashboard/card_user/PassionBadgeList.tsx b/src/components/layout/dashboard/card_user/PassionBadgeList.tsx deleted file mode 100644 index 8c2e149..0000000 --- a/src/components/layout/dashboard/card_user/PassionBadgeList.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import {Badge, Flex} from '@chakra-ui/react'; - -type Props = { - passions: string[], - userPassions?: string[] -} - -export default function PassionBadgeList({passions, userPassions = []}: Props) { - return ( - - {passions.map((passion, index) => - #{passion}, - )} - - ); -} \ No newline at end of file diff --git a/src/components/layout/dashboard/card_user/PassionTagList.tsx b/src/components/layout/dashboard/card_user/PassionTagList.tsx new file mode 100644 index 0000000..93c7d94 --- /dev/null +++ b/src/components/layout/dashboard/card_user/PassionTagList.tsx @@ -0,0 +1,22 @@ +import { Badge, Flex, Tag } from "@chakra-ui/react"; + +type Props = { + passions: string[]; + userPassions?: string[]; +}; + +export default function PassionTagList({ passions, userPassions = [] }: Props) { + return ( + + {passions.map((passion, index) => ( + + {passion} + + ))} + + ); +} diff --git a/src/components/layout/user_profile/CustomCheckbox.jsx b/src/components/layout/user_profile/CustomCheckbox.jsx index 0717359..780ee58 100644 --- a/src/components/layout/user_profile/CustomCheckbox.jsx +++ b/src/components/layout/user_profile/CustomCheckbox.jsx @@ -1,10 +1,6 @@ import { - Badge, useCheckbox, - Text, - Flex, chakra, - Box, Tag, TagLeftIcon, TagLabel, @@ -13,7 +9,7 @@ import { import { IoAdd, IoRemove } from "react-icons/io5"; export default function CustomCheckbox(props) { - const { text, checked, value } = props; + const { text } = props; const { state, getInputProps, getCheckboxProps, getLabelProps, htmlProps } = useCheckbox(props);