protect /setup and use links for button

This commit is contained in:
Milo Schwartz
2024-11-26 20:30:52 -05:00
parent 7c9e57ef12
commit 41e531306d
11 changed files with 48 additions and 63 deletions

View File

@@ -77,7 +77,7 @@ export function ResourcesDataTable<TData, TValue>({
}
className="w-full pl-8"
/>
<Search className="h-5 w-5 absolute left-2 top-1/2 transform -translate-y-1/2" />
<Search className="h-4 w-4 absolute left-2 top-1/2 transform -translate-y-1/2" />
</div>
<Button
onClick={() => {

View File

@@ -253,17 +253,14 @@ export default function SitesTable({ resources, orgId }: ResourcesTableProps) {
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<Button
variant={"gray"}
className="ml-2"
onClick={() =>
router.push(
`/${resourceRow.orgId}/settings/resources/${resourceRow.id}`,
)
}
<Link
href={`/${resourceRow.orgId}/settings/resources/${resourceRow.id}`}
>
Edit <ArrowRight className="ml-2 w-4 h-4" />
</Button>
<Button variant={"gray"} className="ml-2">
Edit
<ArrowRight className="ml-2 w-4 h-4" />
</Button>
</Link>
</div>
</>
);