Skip to content

Commit

Permalink
Wrap voucher in a card
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Sep 11, 2024
1 parent f76ac2a commit 2212a73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thallium-frontend/src/pages/StorePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import StoreItem from "../components/StoreItem";
import styled from "styled-components";
import { Link } from "react-router-dom";

import Card from "../components/Card";
import LoadingBar from "../components/LoadingBar";
import CartStatus from "../components/CartStatus";
import { getCurrentVoucher, Voucher } from "../api/vouchers";
Expand All @@ -22,6 +23,7 @@ const StoreGrid = styled.div`
gap: 2rem;
margin-left: 1rem;
margin-right: 1rem;
margin-top: 2rem;
width: 80%;
`;

Expand Down Expand Up @@ -70,7 +72,7 @@ const StorePage = () => {
<>
<h1>Giveaway Store</h1>
{!(loading || permissionDenied) && <CartStatus />}
{currentVoucher && <VoucherDisplay voucher={currentVoucher} />}
{currentVoucher && <Card title="Active Voucher"><VoucherDisplay voucher={currentVoucher} /></Card>}
{loading && <LoadingBar />}
<StoreGrid>
{storeItems?.map((item) => (
Expand Down

0 comments on commit 2212a73

Please sign in to comment.