mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 05:05:52 +08:00
feat(core): add download app button to web (#5023)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BrowserWarning, DownloadTips } from '@affine/component/affine-banner';
|
||||
import { BrowserWarning, LocalDemoTips } from '@affine/component/affine-banner';
|
||||
import type { StoryFn } from '@storybook/react';
|
||||
import { useState } from 'react';
|
||||
|
||||
@@ -24,9 +24,13 @@ export const Default: StoryFn = () => {
|
||||
|
||||
export const Download: StoryFn = () => {
|
||||
const [, setIsClosed] = useState(true);
|
||||
const [isLoggedIn, setIsLoggedIn] = useState(false);
|
||||
return (
|
||||
<div>
|
||||
<DownloadTips
|
||||
<LocalDemoTips
|
||||
isLoggedIn={isLoggedIn}
|
||||
onLogin={() => setIsLoggedIn(true)}
|
||||
onEnableCloud={() => {}}
|
||||
onClose={() => {
|
||||
setIsClosed(false);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user