Created
February 16, 2024 12:29
-
-
Save Bogdan808/91b2d6da122fb81daa65f2ade63ccc16 to your computer and use it in GitHub Desktop.
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
// . /index page | |
import { useEffect } from "react"; | |
import styled from "styled-components"; | |
import { MainHeader } from "../../features/common/layout/MainHeader"; | |
import { SalesHistoryLoader } from "../../features/salesHistoryLoader"; | |
import { SuppliersTable } from "../../features/suppliers"; | |
import { useTranslation } from "../../i18n/useTranslation"; | |
import { CheckAccessApi } from "../../requests/checkAccess"; | |
export const SuppliersListPage = () => { | |
const { t } = useTranslation(); | |
return ( | |
<Wrapper> | |
<MainHeader | |
hideMarketplace={true} | |
title={t("suppliers.pages.index.title")} | |
description={t("suppliers.pages.index.description")} | |
/> | |
<SalesHistoryLoader> | |
<SuppliersTable /> | |
</SalesHistoryLoader> | |
</Wrapper> | |
); | |
}; | |
const Wrapper = styled.div` | |
display: flex; | |
flex-direction: column; | |
gap: ${({ theme }) => theme.spacing.sp16}; | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment