feat: better feature flags (#2026)
* feat: feature flag upgrade * fix translations * refactor * fix * fix
This commit is contained in:
@@ -180,7 +180,7 @@ export default function ShareShell({
|
||||
<AppShell.Main>
|
||||
{children}
|
||||
|
||||
{data && shareId && !data.hasLicenseKey && <ShareBranding />}
|
||||
{data && shareId && !(data.features?.length > 0) && <ShareBranding />}
|
||||
</AppShell.Main>
|
||||
|
||||
<AppShell.Aside
|
||||
|
||||
@@ -41,7 +41,7 @@ export interface ISharedPage extends IShare {
|
||||
level: number;
|
||||
sharedPage: { id: string; slugId: string; title: string; icon: string };
|
||||
};
|
||||
hasLicenseKey: boolean;
|
||||
features?: string[];
|
||||
}
|
||||
|
||||
export interface IShareForPage extends IShare {
|
||||
@@ -71,5 +71,5 @@ export interface IShareInfoInput {
|
||||
export interface ISharedPageTree {
|
||||
share: IShare;
|
||||
pageTree: Partial<IPage[]>;
|
||||
hasLicenseKey: boolean;
|
||||
features?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user