diff --git a/frontend/src/pages/Settings/Friends.jsx b/frontend/src/pages/Settings/Friends.jsx index 29369da..dda88f2 100644 --- a/frontend/src/pages/Settings/Friends.jsx +++ b/frontend/src/pages/Settings/Friends.jsx @@ -1,9 +1,34 @@ +import { Button, Card, Flex, List, Stack, TextInput, Title } from '@mantine/core' +import { IconSearch } from '@tabler/icons-react' import React from 'react' const Friends = () => { - return ( -
Friends
- ) + return ( + + Friends + + } /> + + + + { + friends.map(({ username }) => { + return ( + + {username} + + ) + }) + } + + + ) } +const friends = [ + { username: 'moonpatel' }, + { username: 'user2' }, + { username: 'user3' } +] + export default Friends \ No newline at end of file diff --git a/frontend/src/pages/Settings/Settings.jsx b/frontend/src/pages/Settings/Settings.jsx index f3051cc..e4358d8 100644 --- a/frontend/src/pages/Settings/Settings.jsx +++ b/frontend/src/pages/Settings/Settings.jsx @@ -1,4 +1,4 @@ -import { Flex, NavLink, Stack, Text, ThemeIcon, Title } from '@mantine/core' +import { Box, Flex, NavLink, Stack, Text, ThemeIcon, Title } from '@mantine/core' import { ColorWheelIcon, GearIcon, GlobeIcon, LockOpen1Icon, LockOpen2Icon, PersonIcon } from '@radix-ui/react-icons' import React, { useState } from 'react' import { Link, Outlet } from 'react-router-dom'; @@ -6,7 +6,7 @@ import { Link, Outlet } from 'react-router-dom'; const Settings = () => { const [active, setActive] = useState(null); return ( - <> + @@ -17,9 +17,11 @@ const Settings = () => { <Flex w="300px" gap="3px" align="center" justify="start" direction="column"> {linksList.map((link, index) => <NavLink w="100%" p="10px" key={index} component={Link} sx={{ backgroundColor: '#262523' }} label={link.label} icon={link.icon} to={link.to} />)} </Flex> - <Outlet /> + <div style={{ width: '720px' }}> + <Outlet /> + </div> </Flex> - </> + </Box> ) }