mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 01:55:36 +01:00
Fixed paging. Updated edit props.
This commit is contained in:
parent
d392e500c6
commit
b9825304c3
10 changed files with 32 additions and 46 deletions
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue