gift: update UI and voucher & items BS

This commit is contained in:
2025-12-30 11:09:52 +03:00
parent f3b8bdba63
commit 3ed5c4d5d6
17 changed files with 434 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
import { Layout, Spin } from "antd";
import PaymentMethods from "components/PaymentMethods/PaymentMethods";
import ProHeader from "components/ProHeader/ProHeader";
import { useTranslation } from "react-i18next";
import styles from "../address/address.module.css";
import ECardButton from "./components/ECardButton";
import { useGetEGiftCardsQuery } from "redux/api/others";
import ECardList from "./components/ECardList";
export default function EGiftCardsPage() {
const { t } = useTranslation();
const { data: eGiftCards, isLoading } = useGetEGiftCardsQuery();
return (
<Layout>
<ProHeader>{t("checkout.title")}</ProHeader>
<Layout.Content className={styles.checkoutContainer}>
<PaymentMethods />
{isLoading ? <Spin /> : <ECardList eGiftCards={eGiftCards || []} />}
</Layout.Content>
<ECardButton />
</Layout>
);
}