Skip to content

Commit

Permalink
chore:style
Browse files Browse the repository at this point in the history
  • Loading branch information
BuyankhuuTsCAl committed Nov 16, 2023
1 parent a62db8a commit d3d2437
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app/cart/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function OrderPage() {
const [Cart, setCart] = useState<Product[]>([]);
const router = useRouter();
async function fetchProducts() {
const data = (await arrayOfFavorites()) as Product[]; //change the function to grab the cartItems as products
const data = (await arrayOfFavorites()) as Product[]; // change the function to grab the cartItems as products
setCart(data);
}
useEffect(() => {
Expand Down Expand Up @@ -89,7 +89,7 @@ export default function OrderPage() {
</LabelBox>
<Buttons />
<TransparentButton
//{onClick={() => clickFunctions({ fav: favorite })}} <- change to remove item entirely
// {onClick={() => clickFunctions({ fav: favorite })}} <- change to remove item entirely
>
<TrashIcon />
</TransparentButton>
Expand All @@ -112,15 +112,15 @@ export default function OrderPage() {
<OrderTotalDiv>
<HeaderShiftLeft>Order Total</HeaderShiftLeft>
<HeaderShiftRight
//change with the actual cart total
// change with the actual cart total
>
10
</HeaderShiftRight>
</OrderTotalDiv>
</WhiteBackgroundDiv>

<CheckoutButton
//Add Checkout Function by using onClick
// Add Checkout Function by using onClick
>
Check Out
</CheckoutButton>
Expand Down
3 changes: 1 addition & 2 deletions src/app/cart/style.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import styled, { createGlobalStyle } from 'styled-components';

import COLORS from '../../styles/colors';

import { Trash2 } from 'react-feather';
import COLORS from '../../styles/colors';

import NavBar from '../../components/NavBar';

Expand Down

0 comments on commit d3d2437

Please sign in to comment.