feat: replace modal with new design (#4324)

Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Qi
2023-09-13 16:05:19 +08:00
committed by GitHub
parent 49e0172316
commit 0b1ba6bf43
58 changed files with 637 additions and 1404 deletions

View File

@@ -11,7 +11,7 @@ export default {
} satisfies Meta;
export const Basic: StoryFn = () => {
return <TourModal open={true} onClose={() => {}} />;
return <TourModal open={true} />;
};
Basic.args = {
logoSrc: '/imgs/affine-text-logo.png',

View File

@@ -136,11 +136,11 @@ export const DisableModal: StoryFn = () => {
</StyledDisableButton>
<PublicLinkDisableModal
open={open}
onConfirmDisable={() => {
onConfirm={() => {
toast('Disabled');
setOpen(false);
}}
onClose={() => setOpen(false)}
onOpenChange={setOpen}
/>
</>
);