Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development 217 product page api #247

Merged
merged 5 commits into from
Mar 5, 2024

Conversation

kirill-k88
Copy link
Collaborator

Реализовал запрос товара по slug. Временно захардкодил slug на странице товара, в дальнейшем он будет браться из url.

@kirill-k88 kirill-k88 added the api label Mar 4, 2024
@kirill-k88 kirill-k88 requested a review from aimenin March 4, 2024 17:50
@kirill-k88 kirill-k88 self-assigned this Mar 4, 2024
Copy link
Collaborator

@aimenin aimenin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отлично!

*/
export const ProductPage = () => {
const dispatch = useDispatch<AppDispatch>()
const productStore = useSelector((store: StateSchema) => store.product)
//TO DO получать slug из URL или пропса. Временно прописал явно
//const { slug } = useParams()
const slug = '3m-krug-p5000-trizact-hookit-matiruyuschij-150mm-30362-119465471'
const slug =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай в TODO оставим ссылку на issue, если его нет, то нужно создать

…rontend into development_217_product-page-api
@kirill-k88 kirill-k88 merged commit 55ca9e8 into master Mar 5, 2024
1 check passed
@kirill-k88 kirill-k88 deleted the development_217_product-page-api branch March 5, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants