Skip to content

Commit

Permalink
Update ProductList.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
BurhanCantCode authored Aug 2, 2024
1 parent 9a43ae5 commit cb29f69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ProductList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(
return <MuiAlert elevation={6} ref={ref} variant="filled" {...props} />;
});

const ProductList: React.FC = () => {
const { products, updateProduct, removeProduct } = useProducts();
const ProductList: React.FC<{ products: Product[] }> = ({ products }) => {
const { updateProduct, removeProduct } = useProducts();
const { user } = useAuth();
const router = useRouter();
const [successOpen, setSuccessOpen] = useState(false);
Expand Down Expand Up @@ -72,4 +72,4 @@ const ProductList: React.FC = () => {
);
};

export default ProductList;
export default ProductList;

0 comments on commit cb29f69

Please sign in to comment.