Improve dialog logic, add "asDialog" helper
This commit is contained in:
parent
822949408f
commit
a4feed24a8
10 changed files with 131 additions and 77 deletions
|
@ -1,6 +1,5 @@
|
|||
import React from 'react';
|
||||
import { DialogProps } from '@/components/elements/dialog/Dialog';
|
||||
import { Dialog } from '@/components/elements/dialog';
|
||||
import { Dialog, DialogProps } from '@/components/elements/dialog';
|
||||
import { Button } from '@/components/elements/button/index';
|
||||
import CopyOnClick from '@/components/elements/CopyOnClick';
|
||||
import { Alert } from '@/components/elements/alert';
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import { Dialog } from '@/components/elements/dialog';
|
||||
import { DialogProps } from '@/components/elements/dialog/Dialog';
|
||||
import { Dialog, DialogProps } from '@/components/elements/dialog';
|
||||
import getTwoFactorTokenData, { TwoFactorTokenData } from '@/api/account/getTwoFactorTokenData';
|
||||
import { useFlashKey } from '@/plugins/useFlash';
|
||||
import tw from 'twin.macro';
|
||||
|
|
Reference in a new issue