Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
palldas committed May 23, 2024
1 parent ee2ce96 commit 6cf2a87
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
9 changes: 8 additions & 1 deletion frontend/src/components/ItemGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ type ItemGroupProps = {

const ItemGroup: React.FC<ItemGroupProps> = ({ category, items }) => {
return (
<Box p={4} borderWidth="1px" borderRadius="lg" width="full" mb={4} bg="white">
<Box
p={4}
borderWidth="1px"
borderRadius="lg"
width="full"
mb={4}
bg="white"
>
<Heading as="h2" size="md">
{category}
</Heading>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/NavbarSignedIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ const NavbarSignedIn = ({ stateVariable, updateState }: Props) => {

const handleGroupsClick = () => {
navigate("/groups");
}
};

const handleItemsClick = () => {
navigate("/items");
}
};

return (
<Box bg={"#216869"} px={4} width="100vw">
Expand All @@ -83,7 +83,7 @@ const NavbarSignedIn = ({ stateVariable, updateState }: Props) => {
</Text>
</Flex>
<HStack spacing={8} alignItems={"center"}>
<NavLink handleClick={handleItemsClick}>My Items</NavLink>
<NavLink handleClick={handleItemsClick}>My Items</NavLink>
<NavLink handleClick={handleGroupsClick}>My Groups</NavLink>
<Menu>
<MenuButton
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/pages/ItemsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from "react";
import {
Box,
Button,
Flex,
Heading,
Input,
InputGroup,
InputLeftElement,
VStack
import {
Box,
Button,
Flex,
Heading,
Input,
InputGroup,
InputLeftElement,
VStack,
} from "@chakra-ui/react";
import { ArrowForwardIcon, SearchIcon } from "@chakra-ui/icons";
import ItemGroup from "../components/ItemGroup";
Expand Down

0 comments on commit 6cf2a87

Please sign in to comment.