-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.2.3
- Loading branch information
Showing
60 changed files
with
602 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,13 @@ | |
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-icon-180x180.png" /> | ||
<link | ||
rel="preload" | ||
as="font" | ||
crossorigin | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.css" | ||
onload="this.onload=null; this.rel='stylesheet'" | ||
/> | ||
<title>펀잇</title> | ||
</head> | ||
<body> | ||
|
13 changes: 13 additions & 0 deletions
13
frontend/src/components/Common/CategoryFoodList/CategoryFoodList.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import CategoryFoodList from './CategoryFoodList'; | ||
|
||
const meta: Meta<typeof CategoryFoodList> = { | ||
title: 'common/CategoryFoodList', | ||
component: CategoryFoodList, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof CategoryFoodList>; | ||
|
||
export const Default: Story = {}; |
33 changes: 33 additions & 0 deletions
33
frontend/src/components/Common/CategoryFoodList/CategoryFoodList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Link } from '@fun-eat/design-system'; | ||
import { Link as RouterLink } from 'react-router-dom'; | ||
import styled from 'styled-components'; | ||
|
||
import CategoryItem from '../CategoryItem/CategoryItem'; | ||
|
||
import { CATEGORY_TYPE } from '@/constants'; | ||
import { useCategoryFoodQuery } from '@/hooks/queries/product'; | ||
|
||
const category = CATEGORY_TYPE.FOOD; | ||
|
||
const CategoryFoodList = () => { | ||
const { data: categories } = useCategoryFoodQuery(category); | ||
|
||
return ( | ||
<div> | ||
<CategoryFoodListWrapper> | ||
{categories.map((menu) => ( | ||
<Link key={menu.id} as={RouterLink} to={`products/food?category=${menu.id}`}> | ||
<CategoryItem name={menu.name} image={menu.image} /> | ||
</Link> | ||
))} | ||
</CategoryFoodListWrapper> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CategoryFoodList; | ||
|
||
const CategoryFoodListWrapper = styled.div` | ||
display: flex; | ||
gap: 16px; | ||
`; |
22 changes: 22 additions & 0 deletions
22
frontend/src/components/Common/CategoryFoodTab/CategoryFoodTab.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import CategoryFoodTab from './CategoryFoodTab'; | ||
|
||
import CategoryProvider from '@/contexts/CategoryContext'; | ||
|
||
const meta: Meta<typeof CategoryFoodTab> = { | ||
title: 'common/CategoryFoodTab', | ||
component: CategoryFoodTab, | ||
decorators: [ | ||
(Story) => ( | ||
<CategoryProvider> | ||
<Story /> | ||
</CategoryProvider> | ||
), | ||
], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof CategoryFoodTab>; | ||
|
||
export const Default: Story = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
frontend/src/components/Common/CategoryList/CategoryList.stories.tsx
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
frontend/src/components/Common/CategoryList/CategoryList.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
frontend/src/components/Common/CategoryStoreList/CategoryStoreList.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import CategoryStoreList from './CategoryStoreList'; | ||
|
||
const meta: Meta<typeof CategoryStoreList> = { | ||
title: 'common/CategoryStoreList', | ||
component: CategoryStoreList, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof CategoryStoreList>; | ||
|
||
export const Default: Story = {}; |
33 changes: 33 additions & 0 deletions
33
frontend/src/components/Common/CategoryStoreList/CategoryStoreList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Link } from '@fun-eat/design-system'; | ||
import { Link as RouterLink } from 'react-router-dom'; | ||
import styled from 'styled-components'; | ||
|
||
import CategoryItem from '../CategoryItem/CategoryItem'; | ||
|
||
import { CATEGORY_TYPE } from '@/constants'; | ||
import { useCategoryStoreQuery } from '@/hooks/queries/product'; | ||
|
||
const category = CATEGORY_TYPE.STORE; | ||
|
||
const CategoryStoreList = () => { | ||
const { data: categories } = useCategoryStoreQuery(category); | ||
|
||
return ( | ||
<div> | ||
<CategoryStoreListWrapper> | ||
{categories.map((menu) => ( | ||
<Link key={menu.id} as={RouterLink} to={`products/store?category=${menu.id}`}> | ||
<CategoryItem name={menu.name} image={menu.image} /> | ||
</Link> | ||
))} | ||
</CategoryStoreListWrapper> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CategoryStoreList; | ||
|
||
const CategoryStoreListWrapper = styled.div` | ||
display: flex; | ||
gap: 16px; | ||
`; |
22 changes: 22 additions & 0 deletions
22
frontend/src/components/Common/CategoryStoreTab/CategoryStoreTab.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import CategoryStoreTab from './CategoryStoreTab'; | ||
|
||
import CategoryProvider from '@/contexts/CategoryContext'; | ||
|
||
const meta: Meta<typeof CategoryStoreTab> = { | ||
title: 'common/CategoryStoreTab', | ||
component: CategoryStoreTab, | ||
decorators: [ | ||
(Story) => ( | ||
<CategoryProvider> | ||
<Story /> | ||
</CategoryProvider> | ||
), | ||
], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof CategoryStoreTab>; | ||
|
||
export const Default: Story = {}; |
Oops, something went wrong.