Skip to content

Commit

Permalink
changes made
Browse files Browse the repository at this point in the history
  • Loading branch information
Monique Cheng committed Apr 21, 2024
1 parent f595b64 commit a34ef2d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
20 changes: 15 additions & 5 deletions src/app/pickup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import {
ToastPopUP,
} from './styles';


function DateInfoComponent(date: { date: unknown }) {
const date1 = new Date(date.date as string);
const daysOfWeek = [
Expand Down Expand Up @@ -127,11 +126,22 @@ export default function PickUp() {
</PickupContent>
<Heading4Bold>Phone Number</Heading4Bold>
<PickupContent>{Profile?.phone_numbers}</PickupContent>
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '10px' }}>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
marginBottom: '10px',
}}
>
<Heading4Bold>Time Slot</Heading4Bold>
</div>
<div style={{marginBottom: '10px' }}> <Body1>Pick Up times: 10:00 AM - 12:00 PM</Body1> </div>
<div><Body1>Location: 3170 23rd Street, San Francisco, CA 94110</Body1></div>
<div style={{ marginBottom: '10px' }}>
{' '}
<Body1>Pick Up times: 10:00 AM - 12:00 PM</Body1>{' '}
</div>
<div>
<Body1>Location: 3170 23rd Street, San Francisco, CA 94110</Body1>
</div>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
{Time.map(time => (
<PickupTimeButton
Expand Down Expand Up @@ -171,7 +181,7 @@ export default function PickUp() {
const queryString = querystring.stringify({ orderID });
router.push(`/orderConfirmationPickUp?${queryString}`);
}
if (selectedPickupIndex === 0){
if (selectedPickupIndex === 0) {
toast(`You must select a pick-up date!`);
}
}}
Expand Down
3 changes: 1 addition & 2 deletions src/app/pickup/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import NavBar from '../../components/NavBarFolder/NavBar';

import Footer from '../../components/FooterFolder/Footer';


export const PickupContainer = styled.div`
width: 730px;
height: 400px;
Expand Down Expand Up @@ -271,4 +270,4 @@ export const ToastPopUP = styled(ToastContainer)`
z-index: 100;
transform: translatey(90px);
background-color: ${COLORS.lightRed};
`;
`;
6 changes: 3 additions & 3 deletions src/components/OrderSummaryFolder/OrderSummary.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { Body1, Body2, Heading2Bold, Body1Bold } from '@/styles/fonts';
import { Body1, Heading2Bold, Body1Bold, Body2Light } from '@/styles/fonts';
import {
OrderSummaryDiv,
HeaderShiftRight,
Expand All @@ -24,8 +24,8 @@ export default function OrderSummary(props: {
<Heading2Bold>Order Summary</Heading2Bold>
<AlignItemCenter>
<OrderSummaryHeaderDiv>
<Body2>Product Name</Body2>
<Body2>Qty.</Body2>
<Body2Light>PRODUCT NAME</Body2Light>
<Body2Light>QTY</Body2Light>
</OrderSummaryHeaderDiv>
<OrderSummaryDiv>
{cart.map(cartItem => (
Expand Down
8 changes: 7 additions & 1 deletion src/components/OrderSummaryFolder/styles.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import COLORS from '@/styles/colors';
import styled from 'styled-components';

export const OrderSummaryDiv = styled.div`
Expand Down Expand Up @@ -37,6 +38,10 @@ export const WhiteBackgroundDiv = styled.div`
width: 350px;
padding: 20px;
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
`;

export const HeaderShiftRight = styled.h2`
Expand All @@ -57,7 +62,8 @@ export const OrderSummaryHeaderDiv = styled.div`
justify-content: space-between;
align-items: center;
flex-direction: row;
margin-bottom: 10px;
margin-bottom: 15px;
color: ${COLORS.marineBlue};
`;

export const ItemNameDiv = styled.div`
Expand Down

0 comments on commit a34ef2d

Please sign in to comment.