Skip to content

Commit

Permalink
feat: entity card types
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel-Melon committed Dec 17, 2024
1 parent 4122cd0 commit 566878d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/features/Orders/OrderOverviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
HiChevronRight

} from "react-icons/hi2";
import { EntityCard } from "../Shared/EntityCard";

type Props = {
order: Partial<Orders>;
};
Expand Down
8 changes: 4 additions & 4 deletions packages/features/Suppliers/SupplierOverviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export const SupplierOverviewCard: FC<Props> = ({ supplier }) => {
return (
<EntityCard
id={supplier.id}
name={supplier.name}
contactName={supplier.contactName}
phoneNumber={supplier.phoneNumber}
address={supplier.streetAddress}
name={supplier.name as string}
contactName={supplier?.contactName as string}
phoneNumber={supplier.phoneNumber as string}
address={supplier.streetAddress as string}
categories={supplier.categories}
route="suppliers"
extraInfo={[
Expand Down

0 comments on commit 566878d

Please sign in to comment.