Fixed paging. Updated edit props.

This commit is contained in:
Mike Cao 2024-02-05 15:32:36 -08:00
parent d392e500c6
commit b9825304c3
10 changed files with 32 additions and 46 deletions

View file

@ -5,15 +5,15 @@ import WebsiteAddButton from './WebsiteAddButton';
export interface WebsitesHeaderProps {
teamId?: string;
showActions?: boolean;
allowCreate?: boolean;
}
export function WebsitesHeader({ teamId, showActions = true }: WebsitesHeaderProps) {
export function WebsitesHeader({ teamId, allowCreate = true }: WebsitesHeaderProps) {
const { formatMessage, labels } = useMessages();
return (
<PageHeader title={formatMessage(labels.websites)}>
{!process.env.cloudMode && showActions && <WebsiteAddButton teamId={teamId} />}
{allowCreate && !process.env.cloudMode && <WebsiteAddButton teamId={teamId} />}
</PageHeader>
);
}