Skip to content

Commit

Permalink
Merge pull request #107 from kusumotolab/update-ui
Browse files Browse the repository at this point in the history
ホーム画面を作り直した
  • Loading branch information
Haur514 authored Nov 3, 2023
2 parents 4ad9c3e + bfce762 commit 65e2960
Show file tree
Hide file tree
Showing 26 changed files with 604 additions and 743 deletions.
30 changes: 16 additions & 14 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { HomePageParent } from "./HomePage/HomePageParent";
import {
faGear,
faHouse,
faUserEdit,
IconDefinition,
} from "@fortawesome/free-solid-svg-icons";
import { Box, ChakraProvider } from "@chakra-ui/react";
import { Box, ChakraProvider, Flex } from "@chakra-ui/react";
import { createContext, useState } from "react";
import { MembersProvider } from "contexts/MembersContext";
import { ItemsProvider } from "contexts/ItemsContext";
import { Header } from "components/Header";
import { UserSetting } from "Setting/User/UserSetting";
import { AdminPane } from "Setting/Admin/AdminPane";
import { Home } from "features/home/Home";

export const TabIndex = createContext(0);

Expand All @@ -32,7 +32,7 @@ function App() {
displayText: "ホーム",
icon: faHouse,
iconPosition: "left",
contents: <HomePageParent />,
contents: <Home />,
},
{
item: "memberSettings",
Expand All @@ -58,17 +58,19 @@ function App() {
<ChakraProvider>
<MembersProvider>
<ItemsProvider>
<Header
contents={contents}
selectedMenu={selectedMenu}
onClickMenu={handleClickMenu}
/>
<Box mt={16} h="calc(100vh - 64px)">
{
contents.find((content) => content.item === selectedMenu)
?.contents
}
</Box>
<Flex flexDir="column">
<Header
contents={contents}
selectedMenu={selectedMenu}
onClickMenu={handleClickMenu}
/>
<Box mt={16} h="calc(100vh - 64px)">
{
contents.find((content) => content.item === selectedMenu)
?.contents
}
</Box>
</Flex>
</ItemsProvider>
</MembersProvider>
</ChakraProvider>
Expand Down
86 changes: 0 additions & 86 deletions frontend/src/HomePage/History/HistoryPane.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions frontend/src/HomePage/History/card/HistoryCard.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions frontend/src/HomePage/History/card/cancell/CancelButton.tsx

This file was deleted.

87 changes: 0 additions & 87 deletions frontend/src/HomePage/HomePageParent.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions frontend/src/HomePage/Item/Food/FoodPane.tsx

This file was deleted.

Loading

0 comments on commit 65e2960

Please sign in to comment.