mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 21:06:22 +08:00
feat(comming-soon): add comming-soon
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@
|
|||||||
"onlyDependOnLibsWithTags": [
|
"onlyDependOnLibsWithTags": [
|
||||||
"library:utils",
|
"library:utils",
|
||||||
"components:icons",
|
"components:icons",
|
||||||
"components:ui"
|
"components:ui",
|
||||||
|
"library:feature-flags"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { Tooltip } from '@toeverything/components/ui';
|
||||||
|
import { useFlag } from '@toeverything/datasource/feature-flags';
|
||||||
|
function CommingSoon(props: { children: JSX.Element }) {
|
||||||
|
const BooleanCommingSoon = useFlag('BooleanCommingSoon', false);
|
||||||
|
if (!BooleanCommingSoon) return <></>;
|
||||||
|
return (
|
||||||
|
<Tooltip content={'Comming Soon'} placement="top">
|
||||||
|
{props.children}
|
||||||
|
</Tooltip>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export { CommingSoon };
|
||||||
@@ -49,3 +49,5 @@ export {
|
|||||||
FullScreenIcon,
|
FullScreenIcon,
|
||||||
UnGroupIcon,
|
UnGroupIcon,
|
||||||
} from './icon';
|
} from './icon';
|
||||||
|
|
||||||
|
export * from './comming-soon/CommingSoon';
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import type { ActivePanel } from './types';
|
|||||||
import { useFlag } from '@toeverything/datasource/feature-flags';
|
import { useFlag } from '@toeverything/datasource/feature-flags';
|
||||||
import { GroupBy } from './components/group-by/GroupBy';
|
import { GroupBy } from './components/group-by/GroupBy';
|
||||||
|
|
||||||
|
import { CommingSoon } from '@toeverything/components/common';
|
||||||
const GroupMenuWrapper = ({
|
const GroupMenuWrapper = ({
|
||||||
block,
|
block,
|
||||||
editor,
|
editor,
|
||||||
@@ -107,7 +108,7 @@ const GroupMenuWrapper = ({
|
|||||||
// Table View
|
// Table View
|
||||||
// </IconButton>
|
// </IconButton>
|
||||||
// )
|
// )
|
||||||
<Tooltip content={'Comming Soon'} placement="top">
|
<CommingSoon>
|
||||||
<IconButton
|
<IconButton
|
||||||
active={scene === SCENE_CONFIG.TABLE}
|
active={scene === SCENE_CONFIG.TABLE}
|
||||||
style={{ cursor: 'not-allowed' }}
|
style={{ cursor: 'not-allowed' }}
|
||||||
@@ -115,9 +116,9 @@ const GroupMenuWrapper = ({
|
|||||||
<TableIcon fontSize="small" />
|
<TableIcon fontSize="small" />
|
||||||
Table
|
Table
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</CommingSoon>
|
||||||
}
|
}
|
||||||
<Tooltip content={'Comming Soon'} placement="top">
|
<CommingSoon>
|
||||||
<IconButton
|
<IconButton
|
||||||
active={scene === SCENE_CONFIG.TABLE}
|
active={scene === SCENE_CONFIG.TABLE}
|
||||||
style={{ cursor: 'not-allowed' }}
|
style={{ cursor: 'not-allowed' }}
|
||||||
@@ -125,8 +126,8 @@ const GroupMenuWrapper = ({
|
|||||||
<KanBanIcon fontSize="small" />
|
<KanBanIcon fontSize="small" />
|
||||||
Calendar
|
Calendar
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</CommingSoon>
|
||||||
<Tooltip content={'Comming Soon'} placement="top">
|
<CommingSoon>
|
||||||
<IconButton
|
<IconButton
|
||||||
active={scene === SCENE_CONFIG.TABLE}
|
active={scene === SCENE_CONFIG.TABLE}
|
||||||
style={{ cursor: 'not-allowed' }}
|
style={{ cursor: 'not-allowed' }}
|
||||||
@@ -134,8 +135,8 @@ const GroupMenuWrapper = ({
|
|||||||
<TableIcon fontSize="small" />
|
<TableIcon fontSize="small" />
|
||||||
Timeline
|
Timeline
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</CommingSoon>
|
||||||
<Tooltip content={'Comming Soon'} placement="top">
|
<CommingSoon>
|
||||||
<IconButton
|
<IconButton
|
||||||
active={scene === SCENE_CONFIG.TABLE}
|
active={scene === SCENE_CONFIG.TABLE}
|
||||||
style={{ cursor: 'not-allowed' }}
|
style={{ cursor: 'not-allowed' }}
|
||||||
@@ -143,7 +144,7 @@ const GroupMenuWrapper = ({
|
|||||||
<KanBanIcon fontSize="small" />
|
<KanBanIcon fontSize="small" />
|
||||||
BI
|
BI
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</CommingSoon>
|
||||||
|
|
||||||
{
|
{
|
||||||
// Closed beta period temporarily
|
// Closed beta period temporarily
|
||||||
|
|||||||
Reference in New Issue
Block a user