Skip to content

Commit

Permalink
began implementing filter button
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Wu authored and Amanda Wu committed Jan 23, 2025
1 parent 9a275bd commit 0f3828b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/images/filterSymbol.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 18 additions & 2 deletions app/inventory/[[...inventory]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"use client"
import React, { useEffect } from "react";
import { InventorySpreadsheet } from '@app/components/InventorySpreadsheet';
import Image from 'next/image';
import filterSymbol from "@app/images/filterSymbol.svg"


// Utility function to format date to dd/mm/yyyy
function formatDate(date: Date): string {
Expand Down Expand Up @@ -41,7 +44,7 @@ function getInventory() {
console.log("List of Lists:", listOfLists);
return listOfLists;
});
} catch (error) {
} catch (error) {
console.error(error);
return Promise.resolve([]);
}
Expand All @@ -54,7 +57,20 @@ const InternalViewInventoryPage: React.FC = () => {
.then((items: any) => { setInventory(items) })
}, []);
return (
<InventorySpreadsheet inventoryItems={inventory} />
<div className= "px-10">
<div className= "text-[40px] relative overflow-x-auto crimson-regular font-crimson" > Inventory </div>
<button className = "flex flex-row border-2 border-grey rounded-l">
<Image
src={filterSymbol}
alt="filter button"
width={24}
height={29.14}
/>
<div className= "text-[20px] relative overflow-x-auto crimson-regular font-crimson pl-2" > Filter
</div>
</button>
<InventorySpreadsheet inventoryItems={inventory} />
</div>
);
};

Expand Down

0 comments on commit 0f3828b

Please sign in to comment.