-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into api-294-get-cart-list
- Loading branch information
Showing
26 changed files
with
354 additions
and
112 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { RootState } from '@/app/providers/StoreProvider/config/store' | ||
|
||
export const selectFilterProducts = (state: RootState) => state.categoryFilters.filterProducts | ||
|
||
export const selectFilterQuantity = (state: RootState) => state.categoryFilters.productQuantityFilter |
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,26 @@ | ||
import { createSlice } from '@reduxjs/toolkit' | ||
|
||
import type { ICategoryFiltersSchema } from '@/components/Dropdown/types/types' | ||
import { SORT_NAMES, SORT_VALUES } from '@/shared/constants/constants' | ||
|
||
const initialState: ICategoryFiltersSchema = { | ||
filterProducts: { name: SORT_NAMES.NAMES_A_YA, value: SORT_VALUES.NAMES_A_YA }, | ||
productQuantityFilter: { name: '15', value: '15' } | ||
} | ||
|
||
const categoryFiltersSlice = createSlice({ | ||
name: 'categoryFilters', | ||
initialState, | ||
reducers: { | ||
setFilterProducts(state, action) { | ||
state.filterProducts = action.payload | ||
}, | ||
setProductQuantityFilter(state, action) { | ||
state.productQuantityFilter = action.payload | ||
} | ||
} | ||
}) | ||
|
||
export const { reducer: categoryFiltersSliceReducer } = categoryFiltersSlice | ||
|
||
export const { setFilterProducts, setProductQuantityFilter } = categoryFiltersSlice.actions |
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,9 @@ | ||
export interface ICategoryFiltersSchema { | ||
filterProducts: IFilterSchema | ||
productQuantityFilter: IFilterSchema | ||
} | ||
|
||
export type IFilterSchema = { | ||
name: string | ||
value: string | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.vouchers { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 20px; | ||
width: 100%; | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 56px 0; | ||
} | ||
|
||
.title { | ||
width: 100%; | ||
max-width: 700px; | ||
margin: 0; | ||
padding: 0; | ||
} |
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,20 @@ | ||
import WrapperForMainContent from '@/components/WrapperForMainContent/WrapperForMainContent' | ||
import Heading, { HeadingType } from '@/shared/ui/Heading/Heading' | ||
import FormBuyGiftCertificate from '@/widgets/FormBuyGiftCertificate' | ||
|
||
import styles from './VouchersPage.module.scss' | ||
|
||
const VouchersPage = () => { | ||
return ( | ||
<WrapperForMainContent> | ||
<section className={styles.vouchers}> | ||
<Heading type={HeadingType.MAIN} className={styles.title}> | ||
Купить подарочный сертификат | ||
</Heading> | ||
<FormBuyGiftCertificate /> | ||
</section> | ||
</WrapperForMainContent> | ||
) | ||
} | ||
|
||
export default VouchersPage |
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
Oops, something went wrong.