diff --git a/public/ImageUsers/6468d5d52818ea818f845775_1684592188785.jpg b/public/ImageUsers/6468d5d52818ea818f845775_1684592188785.jpg new file mode 100644 index 0000000..2e0728e Binary files /dev/null and b/public/ImageUsers/6468d5d52818ea818f845775_1684592188785.jpg differ diff --git a/src/components/layout/map/CardMatchedUser.tsx b/src/components/layout/map/CardMatchedUser.tsx index e55f9bf..38cd6bf 100644 --- a/src/components/layout/map/CardMatchedUser.tsx +++ b/src/components/layout/map/CardMatchedUser.tsx @@ -1,12 +1,11 @@ import { - Box, Card, CardBody, chakra, + Divider, Flex, GridItem, Image, - Spacer, Text, useRadio, } from "@chakra-ui/react"; @@ -21,12 +20,7 @@ export default function CardMatchedUser({ notif, ...radioProps }: CardMatchedUserProps) { - const { - isLoading, - isError, - data: matchedUser, - error, - } = useQuery({ + const { isLoading, data: matchedUser } = useQuery({ refetchOnWindowFocus: false, queryKey: ["matchUser", notif.MatchedUserID], queryFn: async () => { @@ -54,7 +48,7 @@ export default function CardMatchedUser({ height={"100%"} outline={state.isChecked ? "3px solid" : "none"} outlineColor={state.isChecked ? "purple.500" : "none"} - bg={state.isChecked ? "purple.50" : "white"} + bg={state.isChecked ? "purple.100" : "purple.50"} > - + + {matchedUser.firstName} {matchedUser.lastName} diff --git a/src/components/layout/map/ModalInviteBar.tsx b/src/components/layout/map/ModalInviteBar.tsx index 171374b..5775457 100644 --- a/src/components/layout/map/ModalInviteBar.tsx +++ b/src/components/layout/map/ModalInviteBar.tsx @@ -104,7 +104,7 @@ export default function ModalInviteBar({ <> {!isError && !error diff --git a/src/components/layout/profile/ModalModifyImages.tsx b/src/components/layout/profile/ModalModifyImages.tsx index dfdcd34..63cf2d6 100644 --- a/src/components/layout/profile/ModalModifyImages.tsx +++ b/src/components/layout/profile/ModalModifyImages.tsx @@ -155,6 +155,7 @@ export default function ModalModifyImages(props) { height={"100%"} accept={"image/png, image/jpeg, image/webp"} onInput={({ target }) => { + if (target.files[0]) return; const date = new Date(); const time = date.getTime(); diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index fa097bc..b7d5572 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -34,7 +34,7 @@ import { useQuery } from "@tanstack/react-query"; export default function UserProfile() { const router = useRouter(); - const toast = useToast({ position: "top", isClosable: true }); + const toast = useToast({ position: "top", isClosable: true, duration: 2000 }); const [currentlyLoading, setCurrentlyLoading] = useState(false); const [passions, setPassions] = useState([] as any[]);