Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
palldas committed Jun 3, 2024
1 parent 13eb8db commit b7ec7d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion frontend/lib/fetches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,3 @@ export const fetchUserByUsername = async (username: string) => {
},
});
};

15 changes: 12 additions & 3 deletions frontend/src/components/Friends_List_Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,19 @@ const Friends_List: React.FC<Props> = ({
alignItems="center"
>
<Menu>
<MenuButton as={Button} colorScheme="teal" rightIcon={<FaChevronDown />}>
<MenuButton
as={Button}
colorScheme="teal"
rightIcon={<FaChevronDown />}
>
Add to Group
</MenuButton>
<MenuList bg="#dfe2e1">
{groups.length > 0 ? (
groups.map((group) => (
<MenuItem bg="#dfe2e1" _hover={{ bg: "#bfc2c1" }}
<MenuItem
bg="#dfe2e1"
_hover={{ bg: "#bfc2c1" }}
key={group._id.toString()}
onClick={() =>
handleGroupClick(
Expand All @@ -215,7 +221,10 @@ const Friends_List: React.FC<Props> = ({
</Box>
</Td>
<Td>
<Button colorScheme="red" onClick={() => removeFriend(friend._id.toString())}>
<Button
colorScheme="red"
onClick={() => removeFriend(friend._id.toString())}
>
<DeleteIcon />
</Button>
</Td>
Expand Down

0 comments on commit b7ec7d9

Please sign in to comment.