Linting, logging, removed back button on activation (#867)
commit4474c9d6c627e9f3d6833f932cb8713e87327ddf
authorWill Galebach <willbach@gmail.com>
dateMon 3 Jan 2022, 12:36 (5 years ago)
parent1f43839
src/lib/validators.ts−1
@@ -72,7 +72,6 @@ export const validatePatq = (v: string) => {
7272};
7373
7474export const validateActivationTicket = (v: string) => {
75− console.log('HERE', v.length)
7675 try {
7776 if (v.length < 42) {
7877 throw new Error();
src/views/Activate/ActivateCode.tsx+1−1
@@ -36,7 +36,7 @@ export default function ActivateCode() {
3636 );
3737
3838 return (
39− <View inset>
39+ <View inset hideBack>
4040 <ActivateView
4141 hideBack={hasInitialValues}
4242 header={<ActivateHeader content={'Planet Code'} />}
src/views/Activate/ActivateView.tsx−15
@@ -71,20 +71,5 @@ export default function ActivateView({
7171 </Window>
7272 </Grid.Item>
7373 </Grid>
74− // <Box
75− // display="grid"
76− // gridTemplateColumns="1fr"
77− // gridTemplateRows={gridRows || '20% 60% 20%'}
78− // gridTemplateAreas={gridAreas || "'header' 'content' 'footer'"}
79− // border={'1px solid rgb(204, 204, 204)'}
80− // borderRadius={'8px'}
81− // padding={'10px'}
82− // width={'512px'}
83− // height={'512px'}
84− // maxWidth={'calc(100vw - 48px)'}
85− // className={cn(className)}
86− // mb={3}>
87−
88− // </Box>
8974 );
9075}
src/views/Activate/MasterKeyConfirm.tsx+1−1
@@ -91,7 +91,7 @@ const MasterKeyConfirm = () => {
9191 useFadeIn();
9292
9393 return (
94− <View inset id={'master-key-confirm'}>
94+ <View inset id={'master-key-confirm'} hideBack>
9595 <ActivateView
9696 onBack={goBack}
9797 header={header}
src/views/Activate/MasterKeyDownload.tsx+1−1
@@ -119,7 +119,7 @@ const MasterKeyDownload = () => {
119119 }, [delayedFadeIn, fadeIn, setIsIn, skipAnimationDelay]);
120120
121121 return (
122− <View inset>
122+ <View inset hideBack>
123123 <ActivateView
124124 hideBack
125125 header={triggerAnimation && header}
src/views/Activate/MasterKeyReveal.tsx+1−1
@@ -74,7 +74,7 @@ const MasterKeyReveal = () => {
7474 }, [delayedFadeIn, setIsIn]);
7575
7676 return (
77− <View inset>
77+ <View inset hideBack>
7878 <ActivateView
7979 hideBack
8080 header={triggerAnimation && header}
src/views/Activate/MasterKeyTransfer.tsx+1−1
@@ -110,7 +110,7 @@ const MasterKeyTransfer = () => {
110110 }, [error]);
111111
112112 return (
113− <View inset>
113+ <View inset hideBack>
114114 <ActivateView hideBack header={header} footer={footer}>
115115 <Box
116116 alignItems={'center'}
src/views/Login.tsx+1−1
@@ -64,7 +64,7 @@ export default function Login() {
6464 };
6565
6666 return (
67− <View inset hideBack={true}>
67+ <View inset hideBack>
6868 <Grid>
6969 <Grid.Item
7070 full