Improve dialog logic, add "asDialog" helper

This commit is contained in:
DaneEveritt 2022-07-03 13:29:23 -04:00
parent 822949408f
commit a4feed24a8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 131 additions and 77 deletions

View file

@ -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';

View file

@ -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';