Refactored forms and pages.

This commit is contained in:
Mike Cao 2023-10-07 18:55:14 -07:00
parent 1325abe31d
commit 6253d55790
57 changed files with 209 additions and 208 deletions

View file

@ -7,8 +7,8 @@ export function WebsitesTable({
data = [],
showTeam,
showActions,
showEditButton,
showViewButton,
allowEdit,
allowView,
children,
}) {
const { formatMessage, labels } = useMessages();
@ -37,7 +37,7 @@ export function WebsitesTable({
return (
<>
{showActions && showEditButton && (!showTeam || ownerId === user.id) && (
{showActions && allowEdit && (!showTeam || ownerId === user.id) && (
<Link href={`/settings/websites/${id}`}>
<Button>
<Icon>
@ -47,7 +47,7 @@ export function WebsitesTable({
</Button>
</Link>
)}
{showActions && showViewButton && (
{showActions && allowView && (
<Link href={`/websites/${id}`}>
<Button>
<Icon>