-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/PoeStack/poestack-sage
- Loading branch information
Showing
53 changed files
with
1,834 additions
and
770 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
36 changes: 36 additions & 0 deletions
36
src/echo-plugins/networth-plugin/src/components/Cards/ItemTableCard.tsx
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,36 @@ | ||
import * as React from 'react' | ||
import { Accordion, Card } from 'echo-common/components-v1' | ||
import { observer } from 'mobx-react' | ||
import { ListIcon } from 'lucide-react' | ||
import { useTranslation } from 'react-i18next' | ||
import ItemTableContainer from '../ItemTable/ItemTableContainer' | ||
|
||
interface ItemTableCardProps { | ||
className?: string | ||
} | ||
|
||
const ItemTableCard: React.FC<ItemTableCardProps> = ({ className }) => { | ||
const { t } = useTranslation() | ||
|
||
return ( | ||
<Accordion type="single" collapsible className={className}> | ||
<Card className="w-full"> | ||
<Accordion.Item value="item-1" className="border-b-0"> | ||
<Accordion.Trigger className="pr-2 py-0"> | ||
<Card.Header className="flex flex-row justify-between items-center p-3 space-y-0"> | ||
<ListIcon className="h-5 w-5" /> | ||
<div className="pl-2 uppercase">{t('title.itemsCard')}</div> | ||
</Card.Header> | ||
</Accordion.Trigger> | ||
<Accordion.Content> | ||
<Card.Content className="p-2 pt-4 border-t"> | ||
<ItemTableContainer /> | ||
</Card.Content> | ||
</Accordion.Content> | ||
</Accordion.Item> | ||
</Card> | ||
</Accordion> | ||
) | ||
} | ||
|
||
export default observer(ItemTableCard) |
Oops, something went wrong.