-
-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* UI consolidation - Combine "suppliers" and "manufactuers" onto same tab * Update StylishText.tsx Remove unused import
- Loading branch information
1 parent
cd9f491
commit 656950a
Showing
3 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { t } from '@lingui/macro'; | ||
import { Accordion, Skeleton } from '@mantine/core'; | ||
|
||
import { StylishText } from '../../components/items/StylishText'; | ||
import { ManufacturerPartTable } from '../../tables/purchasing/ManufacturerPartTable'; | ||
import { SupplierPartTable } from '../../tables/purchasing/SupplierPartTable'; | ||
|
||
export default function PartSupplierDetail({ partId }: { partId: number }) { | ||
return ( | ||
<Accordion multiple defaultValue={['part-suppliers', 'part-manufacturers']}> | ||
<Accordion.Item value="part-suppliers"> | ||
<Accordion.Control> | ||
<StylishText size="lg">{t`Suppliers`}</StylishText> | ||
</Accordion.Control> | ||
<Accordion.Panel> | ||
<SupplierPartTable params={{ part: partId }} /> | ||
</Accordion.Panel> | ||
</Accordion.Item> | ||
<Accordion.Item value="part-manufacturers"> | ||
<Accordion.Control> | ||
<StylishText size="lg">{t`Manufacturers`}</StylishText> | ||
</Accordion.Control> | ||
<Accordion.Panel> | ||
<ManufacturerPartTable params={{ part: partId }} /> | ||
</Accordion.Panel> | ||
</Accordion.Item> | ||
</Accordion> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters