deps(node): typescript 3.9.6 => 4.1.3
This commit is contained in:
parent
9184cbdf11
commit
72be2808f3
7 changed files with 2582 additions and 2483 deletions
|
@ -1,13 +1,13 @@
|
|||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import ContentBox from '@/components/elements/ContentBox';
|
||||
import UpdatePasswordForm from '@/components/dashboard/forms/UpdatePasswordForm';
|
||||
import UpdateEmailAddressForm from '@/components/dashboard/forms/UpdateEmailAddressForm';
|
||||
import ConfigureTwoFactorForm from '@/components/dashboard/forms/ConfigureTwoFactorForm';
|
||||
import PageContentBlock from '@/components/elements/PageContentBlock';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import tw from 'twin.macro';
|
||||
import { breakpoint } from '@/theme';
|
||||
import styled from 'styled-components/macro';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
import MessageBox from '@/components/MessageBox';
|
||||
|
||||
const Container = styled.div`
|
||||
|
@ -26,7 +26,9 @@ const Container = styled.div`
|
|||
}
|
||||
`;
|
||||
|
||||
export default ({ location: { state } }: RouteComponentProps) => {
|
||||
export default () => {
|
||||
const state = useLocation<{ twoFactorRedirect: boolean }>().state;
|
||||
|
||||
return (
|
||||
<PageContentBlock title={'Account Overview'}>
|
||||
{state?.twoFactorRedirect &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue