feat: add unassigned assets banner
This commit is contained in:
parent
c8911e7e06
commit
6e4c4f2c9d
18
app/components/projects/list/unassigned-banner.tsx
Normal file
18
app/components/projects/list/unassigned-banner.tsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { Link } from 'react-router';
|
||||||
|
import { Button } from '~/components/ui/button';
|
||||||
|
import { Text } from '~/components/ui/text';
|
||||||
|
import { ASSET_FILTER } from '~/data/assets/constants';
|
||||||
|
import { ROUTES } from '~/data/routes';
|
||||||
|
|
||||||
|
export function UnassignedBanner({ count }: { count: number }) {
|
||||||
|
return (
|
||||||
|
<div className='flex flex-wrap items-center justify-between gap-4 rounded-card-sm bg-surface-dialog px-4 py-3 ring-1 ring-inset ring-border-subtle'>
|
||||||
|
<Text>
|
||||||
|
{count} {count === 1 ? 'asset isn’t' : 'assets aren’t'} in a project yet. Their AR pages show only the thob logo.
|
||||||
|
</Text>
|
||||||
|
<Button asChild variant='link'>
|
||||||
|
<Link to={ROUTES.assetsFiltered(ASSET_FILTER.unassigned)}>Review unassigned →</Link>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user