@huma-finance/widgets 0.0.43-beta.108 → 0.0.43-beta.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.43-beta.108+d2daf86",
3
+ "version": "0.0.43-beta.112+6bf486b",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,8 @@
30
30
  "@ethersproject/experimental": "^5.7.0",
31
31
  "@ethersproject/providers": "^5.6.0",
32
32
  "@ethersproject/units": "^5.6.0",
33
- "@huma-finance/sdk": "^0.0.43-beta.108+d2daf86",
34
- "@huma-finance/shared": "^0.0.42",
33
+ "@huma-finance/sdk": "^0.0.43-beta.112+6bf486b",
34
+ "@huma-finance/shared": "^0.0.43-beta.112+6bf486b",
35
35
  "@mui/icons-material": "^5.3.0",
36
36
  "@mui/material": "^5.0.6",
37
37
  "@mui/styles": "^5.0.2",
@@ -192,5 +192,5 @@
192
192
  "optionalDependencies": {
193
193
  "encoding": "^0.1.13"
194
194
  },
195
- "gitHead": "d2daf869597daff75dab649142fa62ea6bfc70c1"
195
+ "gitHead": "6bf486be701344cfbb3a6c8aa6b662d64c3ba096"
196
196
  }
@@ -8,7 +8,7 @@ import {
8
8
  timeUtil,
9
9
  useMQ,
10
10
  } from '@huma-finance/shared'
11
- import { Box, css } from '@mui/material'
11
+ import { Box, css, useTheme } from '@mui/material'
12
12
  import { useWeb3React } from '@web3-react/core'
13
13
  import { useEffect, useState } from 'react'
14
14
 
@@ -64,6 +64,7 @@ export function Activity({
64
64
  poolInfo,
65
65
  targetEvents,
66
66
  }: Props): React.ReactElement | null {
67
+ const theme = useTheme()
67
68
  const { account } = useWeb3React()
68
69
  const { decimals } = poolInfo.poolUnderlyingToken
69
70
  const [events, setEvents] = useState<ActivityDataType[] | undefined>()
@@ -80,9 +81,9 @@ export function Activity({
80
81
 
81
82
  const getPadding = () => {
82
83
  if (isSmSize) {
83
- return '16px 24px'
84
+ return theme.spacing(2, 3)
84
85
  }
85
- return '33px 48px'
86
+ return theme.spacing(4, 6)
86
87
  }
87
88
 
88
89
  useEffect(() => {
@@ -101,13 +102,13 @@ export function Activity({
101
102
 
102
103
  const styles = {
103
104
  wrapper: css`
104
- margin-top: 71px;
105
+ margin-top: ${theme.spacing(9)};
105
106
  `,
106
107
  title: css`
107
108
  font-family: 'Uni-Neue-Black';
108
109
  font-size: 24px;
109
110
  color: #6b6572;
110
- margin-bottom: 14px;
111
+ margin-bottom: ${theme.spacing(2)};
111
112
  `,
112
113
  tableWrapper: css`
113
114
  background: #ffffff;
@@ -61,17 +61,17 @@ export function ApproveAllowanceModal({
61
61
  const styles = {
62
62
  iconWrapper: css`
63
63
  ${theme.cssMixins.rowCentered};
64
- margin-top: 50px;
64
+ margin-top: ${theme.spacing(6)};
65
65
  & > img {
66
66
  width: 220px;
67
67
  }
68
68
  `,
69
69
  description: css`
70
- margin-top: 34px;
70
+ margin-top: ${theme.spacing(4)};
71
71
  font-family: 'Uni-Neue-Regular';
72
72
  font-size: 16px;
73
73
  color: #a8a1b2;
74
- padding: 0 12px;
74
+ padding: ${theme.spacing(0, 1)};
75
75
  `,
76
76
  }
77
77
 
@@ -1,4 +1,5 @@
1
1
  import { supportedChainId } from '@huma-finance/shared'
2
+ import { useTheme } from '@mui/material'
2
3
  import { useWeb3React } from '@web3-react/core'
3
4
  import { useEffect, useState } from 'react'
4
5
 
@@ -9,6 +10,7 @@ import { HumaModal, HumaModalHeader } from './humaModal'
9
10
  export function ChainSupportProvider({
10
11
  children,
11
12
  }: WCProps): React.ReactElement | null {
13
+ const theme = useTheme()
12
14
  const { chainId } = useWeb3React()
13
15
  const chainSupported = !!supportedChainId(chainId)
14
16
  const [chainNotSupportedOpen, setChainNotSupportedOpen] = useState(false)
@@ -35,7 +37,7 @@ export function ChainSupportProvider({
35
37
  overflowY='auto'
36
38
  onClose={handleClose}
37
39
  width='480px'
38
- padding='30px 40px'
40
+ padding={theme.spacing(4, 5)}
39
41
  disableBackdropClick
40
42
  >
41
43
  <HumaModalHeader onClose={handleClose} height={0} />
@@ -67,7 +67,7 @@ export function ChooseAmountModal({
67
67
  font-family: 'Uni-Neue-Regular';
68
68
  font-size: 16px;
69
69
  color: #a8a1b2;
70
- margin-top: 16px;
70
+ margin-top: ${theme.spacing(2)};
71
71
  `,
72
72
  chosenAmountWrapper: css`
73
73
  ${theme.cssMixins.rowCentered};
@@ -76,8 +76,8 @@ export function ChooseAmountModal({
76
76
  -webkit-text-fill-color: transparent;
77
77
  font-weight: 700;
78
78
  font-size: 32px;
79
- margin-bottom: 10px;
80
- margin-top: 30px;
79
+ margin-bottom: ${theme.spacing(1)};
80
+ margin-top: ${theme.spacing(4)};
81
81
  `,
82
82
  chosenAmount: css`
83
83
  font-family: 'Inter-Bold';
@@ -85,12 +85,12 @@ export function ChooseAmountModal({
85
85
  `,
86
86
  chosenAmountSymbol: css`
87
87
  font-size: 75%;
88
- margin-left: 5px;
88
+ margin-left: ${theme.spacing(0.5)};
89
89
  letter-spacing: 0.1px;
90
90
  `,
91
91
  inputAmountWrapper: css`
92
- margin-bottom: 10px;
93
- margin-top: 30px;
92
+ margin-bottom: ${theme.spacing(1)};
93
+ margin-top: ${theme.spacing(4)};
94
94
  `,
95
95
  inputAmount: css`
96
96
  ${theme.cssMixins.rowSpaceBetweened};
@@ -103,11 +103,11 @@ export function ChooseAmountModal({
103
103
  `,
104
104
  amountAvailable: css`
105
105
  ${theme.cssMixins.rowVCentered};
106
- margin-top: 5px;
107
- margin-bottom: 100px;
106
+ margin-top: ${theme.spacing(0.5)};
107
+ margin-bottom: ${theme.spacing(12)};
108
108
  font-size: 16px;
109
109
  & > svg {
110
- margin-right: 5px;
110
+ margin-right: ${theme.spacing(0.5)};
111
111
  }
112
112
  `,
113
113
  tokenIcon: {
@@ -123,7 +123,7 @@ export function ChooseAmountModal({
123
123
  font-size: 24px;
124
124
  }
125
125
  & > svg:first-of-type {
126
- margin-bottom: -10px;
126
+ margin-bottom: ${theme.spacing(-1)};
127
127
  }
128
128
  `,
129
129
  input: css`
@@ -131,7 +131,7 @@ export function ChooseAmountModal({
131
131
  -webkit-text-fill-color: ${theme.palette.primary.main};
132
132
  `,
133
133
  slider: css`
134
- margin-bottom: 54px;
134
+ margin-bottom: ${theme.spacing(7)};
135
135
  &.MuiSlider-root {
136
136
  height: 8px !important;
137
137
  color: #e9e9e9;
@@ -158,7 +158,7 @@ export function ChooseAmountModal({
158
158
  color: #423b46;
159
159
  `,
160
160
  divider: css`
161
- margin: 16px 0;
161
+ margin: ${theme.spacing(2, 0)};
162
162
  background: #49505b;
163
163
  border-color: #e9e3f1;
164
164
  `,
@@ -166,18 +166,18 @@ export function ChooseAmountModal({
166
166
  font-family: 'Uni-Neue-Bold';
167
167
  width: 100%;
168
168
  position: absolute;
169
- bottom: ${isXsSize ? 20 : 0}px;
169
+ bottom: ${theme.spacing(isXsSize ? 2 : 0)};
170
170
  `,
171
171
  terms: css`
172
172
  ${theme.cssMixins.rowHCentered};
173
173
  font-weight: 400;
174
174
  font-size: 12px;
175
175
  color: #a8a1b2;
176
- margin-top: 8px;
176
+ margin-top: ${theme.spacing(1)};
177
177
  letter-spacing: 0px;
178
178
  width: 100%;
179
179
  position: absolute;
180
- bottom: -22px;
180
+ bottom: ${theme.spacing(-3)};
181
181
  `,
182
182
  }
183
183
 
@@ -33,17 +33,17 @@ export function ConfirmTransferModal({
33
33
  `,
34
34
  header: css`
35
35
  ${theme.cssMixins.rowHCentered};
36
- margin-top: -5px;
36
+ margin-top: ${theme.spacing(-0.5)};
37
37
  `,
38
38
  description: css`
39
39
  font-family: 'Uni-Neue-Regular';
40
40
  font-size: 16px;
41
41
  color: #49505b;
42
- margin-top: 30px;
42
+ margin-top: ${theme.spacing(4)};
43
43
  text-align: center;
44
44
  `,
45
45
  transferWrapper: css`
46
- margin-top: 75px;
46
+ margin-top: ${theme.spacing(9)};
47
47
  `,
48
48
  transfer: css`
49
49
  font-family: 'Uni-Neue-Regular';
@@ -55,8 +55,8 @@ export function ConfirmTransferModal({
55
55
  font-weight: 500;
56
56
  font-size: 16px;
57
57
  color: #49505b;
58
- padding: 24px 20px;
59
- margin-bottom: 9px;
58
+ padding: ${theme.spacing(3, 2)};
59
+ margin-bottom: ${theme.spacing(1)};
60
60
  position: relative;
61
61
  box-sizing: border-box;
62
62
  `,
@@ -108,7 +108,7 @@ export function ConfirmTransferModal({
108
108
  `,
109
109
  usdcIcon: css`
110
110
  width: 22px;
111
- margin-right: 20px;
111
+ margin-right: ${theme.spacing(2)};
112
112
  & > path:first-of-type {
113
113
  fill: #76707e;
114
114
  }
@@ -124,7 +124,9 @@ export function ConfirmTransferModal({
124
124
  <Box css={styles.transferWrapper}>
125
125
  <Box css={styles.transfer}>
126
126
  <Box css={styles.transferItem}>
127
- <ReceiptIcon css={{ width: '24px', marginRight: '20px' }} />
127
+ <ReceiptIcon
128
+ css={{ width: '24px', marginRight: theme.spacing(2) }}
129
+ />
128
130
  {items[0].leftText}
129
131
  </Box>
130
132
  <ArrowForwardIosIcon
@@ -62,16 +62,16 @@ export function Evaluation({
62
62
  `,
63
63
  header: css`
64
64
  ${theme.cssMixins.rowHCentered};
65
- margin-top: -5px;
65
+ margin-top: ${theme.spacing(-0.5)};
66
66
  `,
67
67
  content: css`
68
68
  ${theme.cssMixins.rowHCentered};
69
- margin-top: 30px;
69
+ margin-top: ${theme.spacing(4)};
70
70
  font-family: 'Uni-Neue-Regular';
71
71
  font-size: 16px;
72
72
  line-height: 24px;
73
73
  color: #49505b;
74
- margin-bottom: 65px;
74
+ margin-bottom: ${theme.spacing(8)};
75
75
  `,
76
76
  checkWrapper: css`
77
77
  ${theme.cssMixins.rowVCentered}
@@ -96,9 +96,9 @@ export function Evaluation({
96
96
  congratsWrapper: css`
97
97
  font-family: 'Uni-Neue-Regular';
98
98
  font-size: 16px;
99
- padding: 0 16px;
99
+ padding: ${theme.spacing(0, 2)};
100
100
  ${theme.cssMixins.rowVCentered}
101
- margin-top: 60px;
101
+ margin-top: ${theme.spacing(8)};
102
102
  height: 52px;
103
103
  background: linear-gradient(
104
104
  0deg,
@@ -40,12 +40,12 @@ export function ErrorModal({
40
40
  `,
41
41
  header: css`
42
42
  ${theme.cssMixins.rowHCentered};
43
- margin-top: -5px;
43
+ margin-top: ${theme.spacing(-0.5)};
44
44
  `,
45
45
  sorry: css`
46
46
  ${theme.cssMixins.rowHCentered};
47
- margin-top: 100px;
48
- margin-right: 30px;
47
+ margin-top: ${theme.spacing(12)};
48
+ margin-right: ${theme.spacing(4)};
49
49
  & > img {
50
50
  width: 170px;
51
51
  }
@@ -54,7 +54,7 @@ export function ErrorModal({
54
54
  box-sizing: border-box;
55
55
  width: 100%;
56
56
  display: inline-table;
57
- padding: 16px 0;
57
+ padding: ${theme.spacing(2, 0)};
58
58
  background: linear-gradient(
59
59
  0deg,
60
60
  rgba(255, 255, 255, 0.9),
@@ -63,23 +63,23 @@ export function ErrorModal({
63
63
  #d32f2f;
64
64
  border-radius: 4px;
65
65
  position: relative;
66
- margin-top: 72px;
66
+ margin-top: ${theme.spacing(9)};
67
67
  height: 79px;
68
68
  `,
69
69
  errorIcon: css`
70
70
  position: absolute;
71
71
  font-size: 20px;
72
72
  color: #d32f2f;
73
- margin: 0 15px;
73
+ margin: ${theme.spacing(0, 2)};
74
74
  `,
75
75
  messageWrapper: css`
76
76
  color: #541313;
77
77
  font-family: 'Uni-Neue-Regular';
78
78
  font-size: 16px;
79
- padding-left: 50px;
79
+ padding-left: ${theme.spacing(6)};
80
80
  `,
81
81
  errorMessage: css`
82
- margin-top: 4px;
82
+ margin-top: ${theme.spacing(0.5)};
83
83
  font-size: 14px;
84
84
  font-family: 'Uni-Neue-Regular';
85
85
  color: #541313;
@@ -90,7 +90,7 @@ export function ErrorModal({
90
90
  -webkit-box-orient: vertical;
91
91
  overflow: hidden;
92
92
  text-overflow: ellipsis;
93
- margin-right: 20px;
93
+ margin-right: ${theme.spacing(2)};
94
94
  `,
95
95
  okButton: css`
96
96
  & .MuiButtonBase-root {
@@ -77,9 +77,9 @@ export function FactoredList<T>({
77
77
 
78
78
  const getPadding = () => {
79
79
  if (isMdSize) {
80
- return '0 8px 8px 8px'
80
+ return theme.spacing(0, 1, 1, 1)
81
81
  }
82
- return '0 16px 16px 16px'
82
+ return theme.spacing(0, 2, 2, 2)
83
83
  }
84
84
 
85
85
  const styles = {
@@ -87,7 +87,7 @@ export function FactoredList<T>({
87
87
  font-family: 'Uni-Neue-Black';
88
88
  color: ${theme.palette.text.primary};
89
89
  font-size: 24px;
90
- margin-bottom: 16px;
90
+ margin-bottom: ${theme.spacing(2)};
91
91
  `,
92
92
  description: css`
93
93
  font-family: 'Uni-Neue-Regular';
@@ -95,7 +95,7 @@ export function FactoredList<T>({
95
95
  font-size: 1rem;
96
96
  `,
97
97
  tableWrapper: css`
98
- margin-top: 24px;
98
+ margin-top: ${theme.spacing(3)};
99
99
  padding: ${getPadding()};
100
100
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
101
101
  border: 1px solid #ffffff;
@@ -106,14 +106,14 @@ export function FactoredList<T>({
106
106
  width: calc(100% - 30px);
107
107
  position: absolute;
108
108
  top: 0;
109
- left: 15px;
109
+ left: ${theme.spacing(2)};
110
110
  `,
111
111
  }
112
112
 
113
113
  return (
114
114
  <Box>
115
115
  <Box css={styles.title}>Factored {title}</Box>
116
- <Box css={styles.description} marginBottom='47px'>
116
+ <Box css={styles.description} marginBottom={theme.spacing(6)}>
117
117
  {!isActive && (
118
118
  <Box component='span'>
119
119
  Please connect wallet to check your factored {title.toLowerCase()}.
@@ -30,9 +30,9 @@ export function UpcomingList<T>({
30
30
 
31
31
  const getPadding = () => {
32
32
  if (isMdSize) {
33
- return '0 8px 8px 8px'
33
+ return theme.spacing(0, 1, 1, 1)
34
34
  }
35
- return '0 16px 16px 16px'
35
+ return theme.spacing(0, 2, 2, 2)
36
36
  }
37
37
 
38
38
  const styles = {
@@ -40,7 +40,7 @@ export function UpcomingList<T>({
40
40
  font-family: 'Uni-Neue-Black';
41
41
  color: ${theme.palette.text.primary};
42
42
  font-size: 24px;
43
- margin-bottom: 16px;
43
+ margin-bottom: ${theme.spacing(2)};
44
44
  `,
45
45
  description: css`
46
46
  font-family: 'Uni-Neue-Regular';
@@ -48,7 +48,7 @@ export function UpcomingList<T>({
48
48
  font-size: 1rem;
49
49
  `,
50
50
  tableWrapper: css`
51
- margin-top: 24px;
51
+ margin-top: ${theme.spacing(3)};
52
52
  padding: ${getPadding()};
53
53
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
54
54
  border: 1px solid #ffffff;
@@ -59,14 +59,14 @@ export function UpcomingList<T>({
59
59
  width: calc(100% - 30px);
60
60
  position: absolute;
61
61
  top: 0;
62
- left: 15px;
62
+ left: ${theme.spacing(2)};
63
63
  `,
64
64
  }
65
65
 
66
66
  return (
67
67
  <Box>
68
68
  <Box css={styles.title}>{title}</Box>
69
- <Box css={styles.description} marginBottom='47px'>
69
+ <Box css={styles.description} marginBottom={theme.spacing(6)}>
70
70
  {!isActive && <Box component='span'>{connectWalletDesc}</Box>}
71
71
  {isActive && !items?.length && <Box>{noItemDesc}</Box>}
72
72
  {isActive && !!items?.length && (
@@ -1,5 +1,5 @@
1
1
  import { css } from '@emotion/react'
2
- import { Alert, Box, Snackbar } from '@mui/material'
2
+ import { Alert, Box, Snackbar, useTheme } from '@mui/material'
3
3
 
4
4
  type Props = {
5
5
  open: boolean
@@ -18,18 +18,20 @@ export function HumaSnackBar({
18
18
  severity,
19
19
  onClose,
20
20
  }: Props) {
21
+ const theme = useTheme()
22
+
21
23
  const styles = {
22
24
  snackbar: css`
23
- margin-top: 80px;
25
+ margin-top: ${theme.spacing(10)};
24
26
  `,
25
27
  alert: css`
26
28
  max-width: 400px;
27
- padding: 20px 35px 20px 20px;
29
+ padding: ${theme.spacing(2, 4, 2, 2)};
28
30
  border-radius: 16px;
29
31
  overflow: hidden;
30
32
  `,
31
33
  title: css`
32
- margin-bottom: 10px;
34
+ margin-bottom: ${theme.spacing(1)};
33
35
  font-size: 16px;
34
36
  font-family: 'Uni-Neue-Bold';
35
37
  `,
@@ -49,7 +49,7 @@ export function HumaTable<T>({
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  align-items: center;
52
- margin-top: 20px;
52
+ margin-top: ${theme.spacing(2)};
53
53
  font-family: 'Uni-Neue-Regular';
54
54
  font-size: 14px;
55
55
  `,
@@ -132,7 +132,7 @@ export function HumaTable<T>({
132
132
  sx={{
133
133
  display: 'flex',
134
134
  alignItems: 'center',
135
- marginLeft: index ? '12px' : '0',
135
+ marginLeft: theme.spacing(index ? 1 : 0),
136
136
  }}
137
137
  >
138
138
  {row[column.dataIndex]}
@@ -144,7 +144,7 @@ export function HumaTable<T>({
144
144
  sx={{
145
145
  display: 'flex',
146
146
  alignItems: 'center',
147
- marginLeft: index ? '12px' : '0',
147
+ marginLeft: theme.spacing(index ? 1 : 0),
148
148
  lineHeight: 0,
149
149
  height: 0,
150
150
  }}
@@ -187,7 +187,7 @@ export function HumaTable<T>({
187
187
  MenuProps: {
188
188
  sx: {
189
189
  '.MuiTablePagination-menuItem': {
190
- padding: '4px 0',
190
+ padding: theme.spacing(1, 0),
191
191
  display: 'flex',
192
192
  justifyContent: 'center',
193
193
  fontSize: '14px',
@@ -29,15 +29,15 @@ export function EvaluationEA({
29
29
  const styles = {
30
30
  iconWrapper: css`
31
31
  ${theme.cssMixins.rowCentered};
32
- margin-top: 65px;
32
+ margin-top: ${theme.spacing(8)};
33
33
  & > img {
34
34
  width: 144px;
35
35
  }
36
36
  `,
37
37
  description: css`
38
38
  ${theme.cssMixins.rowCentered};
39
- margin-top: 82px;
40
- padding: 0 20px;
39
+ margin-top: ${theme.spacing(10)};
40
+ padding: ${theme.spacing(0, 2)};
41
41
  font-family: 'Uni-Neue-Regular';
42
42
  font-size: 16px;
43
43
  color: #a8a1b2;
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  CHAINS,
3
+ checkIsDev,
3
4
  configUtil,
4
5
  DocSignatureStatus,
5
6
  IdentityService,
@@ -15,7 +16,6 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'
15
16
 
16
17
  import { useAppDispatch } from '../../../../hooks/useRedux'
17
18
  import { setError } from '../../../../store/widgets.reducers'
18
- import { envUtil } from '../../../../utils/env'
19
19
  import { BottomButton } from '../../../BottomButton'
20
20
  import { HumaSnackBar } from '../../../HumaSnackBar'
21
21
  import { ApproveLenderImg } from '../../../images'
@@ -84,7 +84,7 @@ export function EvaluationKYC({
84
84
  }: Props): React.ReactElement | null {
85
85
  const theme = useTheme()
86
86
  const dispatch = useAppDispatch()
87
- const isDev = envUtil.checkIsDev()
87
+ const isDev = checkIsDev()
88
88
  const { account, chainId } = useWeb3React()
89
89
  const { kycProvider, code, kycPool } = useParamsSearch()
90
90
  const { isWalletOwnershipVerified, setError: setAuthError } =
@@ -103,15 +103,15 @@ export function EvaluationKYC({
103
103
  const styles = {
104
104
  iconWrapper: css`
105
105
  ${theme.cssMixins.rowCentered};
106
- margin-top: 65px;
106
+ margin-top: ${theme.spacing(8)};
107
107
  & > img {
108
108
  width: 144px;
109
109
  }
110
110
  `,
111
111
  description: css`
112
112
  ${theme.cssMixins.rowCentered};
113
- margin-top: 82px;
114
- padding: 0 20px;
113
+ margin-top: ${theme.spacing(10)};
114
+ padding: ${theme.spacing(0, 2)};
115
115
  font-family: 'Uni-Neue-Regular';
116
116
  font-size: 16px;
117
117
  color: #a8a1b2;
@@ -11,6 +11,7 @@ import {
11
11
  BroadcastEventTypeItem,
12
12
  } from '@notifi-network/notifi-frontend-client'
13
13
  import {
14
+ checkIsDev,
14
15
  getBlockchainConfigFromChain,
15
16
  txAtom,
16
17
  getNotifiDappId,
@@ -28,7 +29,6 @@ import Email from '@mui/icons-material/Email'
28
29
  import { useResetAtom } from 'jotai/utils'
29
30
 
30
31
  import { WrapperModal } from '../WrapperModal'
31
- import { envUtil } from '../../utils/env'
32
32
  import { BottomButton } from '../BottomButton'
33
33
  import { LoadingModal } from '../LoadingModal'
34
34
  import { CheckIcon } from '../icons'
@@ -111,8 +111,8 @@ export function NotifiSubscriptionModal({
111
111
  if (account != null && chainId != null) {
112
112
  const client = newFrontendClient({
113
113
  account: { publicKey: account },
114
- tenantId: getNotifiDappId(envUtil.checkIsDev()),
115
- env: envUtil.checkIsDev() ? 'Development' : 'Production',
114
+ tenantId: getNotifiDappId(checkIsDev()),
115
+ env: checkIsDev() ? 'Development' : 'Production',
116
116
  walletBlockchain: getBlockchainConfigFromChain(chainId),
117
117
  })
118
118
 
@@ -193,7 +193,7 @@ export function NotifiSubscriptionModal({
193
193
  font-family: 'Uni-Neue-Regular';
194
194
  font-size: 16px;
195
195
  color: #a8a1b2;
196
- margin-top: 48px;
196
+ margin-top: ${theme.spacing(6)};
197
197
  `,
198
198
  inputField: css`
199
199
  width: 90%;
@@ -204,12 +204,12 @@ export function NotifiSubscriptionModal({
204
204
  `,
205
205
  header: css`
206
206
  ${theme.cssMixins.rowHCentered};
207
- margin-top: -5px;
207
+ margin-top: ${theme.spacing(-0.5)};
208
208
  `,
209
209
  check: css`
210
210
  width: 100%;
211
211
  ${theme.cssMixins.rowHCentered};
212
- margin-top: 82px;
212
+ margin-top: ${theme.spacing(10)};
213
213
  `,
214
214
  }
215
215
 
@@ -235,7 +235,7 @@ export function NotifiSubscriptionModal({
235
235
 
236
236
  return (
237
237
  <WrapperModal title='Connect Your Email'>
238
- <Typography variant='body2' margin='12px 0'>
238
+ <Typography variant='body2' margin={theme.spacing(1, 0)}>
239
239
  Connect your wallet to receive important emails about your account
240
240
  </Typography>
241
241
  <Box css={styles.inputWrapper}>
@@ -11,24 +11,24 @@ export function SignIn(): React.ReactElement {
11
11
  `,
12
12
  header: css`
13
13
  ${theme.cssMixins.rowHCentered};
14
- margin-top: -5px;
14
+ margin-top: ${theme.spacing(-0.5)};
15
15
  `,
16
16
  icon: css`
17
17
  ${theme.cssMixins.rowHCentered};
18
- margin-top: 100px;
19
- margin-right: 30px;
18
+ margin-top: ${theme.spacing(12)};
19
+ margin-right: ${theme.spacing(4)};
20
20
  & > img {
21
21
  width: 170px;
22
22
  }
23
23
  `,
24
24
  content: css`
25
25
  ${theme.cssMixins.rowHCentered};
26
- margin-top: 30px;
26
+ margin-top: ${theme.spacing(4)};
27
27
  font-family: 'Uni-Neue-Regular';
28
28
  font-size: 16px;
29
29
  line-height: 24px;
30
30
  color: #49505b;
31
- margin-bottom: 65px;
31
+ margin-bottom: ${theme.spacing(8)};
32
32
  `,
33
33
  }
34
34