Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import React from "react"; import SettingsSection from "./SettingsSection.tsx"; import { useSelector } from "react-redux"; import { selectCurrentUser } from "../../store/features/auth/authSlice.ts"; import { useGetUserQuery } from "../../store/features/auth/api/getUserApi.ts"; function UserSection() { useGetUserQuery(); const user = useSelector(selectCurrentUser); return ( <SettingsSection title="Profile" sections={[ { label: "Name", value: `${user?.first_name} ${user?.last_name}`, }, { label: "Email", value: user?.email, }, ]} /> ); } export default UserSection; |