Skip to content

Instantly share code, notes, and snippets.

@Bogdan808
Created February 16, 2024 12:29
Show Gist options
  • Save Bogdan808/91b2d6da122fb81daa65f2ade63ccc16 to your computer and use it in GitHub Desktop.
Save Bogdan808/91b2d6da122fb81daa65f2ade63ccc16 to your computer and use it in GitHub Desktop.
// . /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