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

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.
@@ -29,20 +29,20 @@ export function TxDoneModal({
29
29
  `,
30
30
  header: css`
31
31
  ${theme.cssMixins.rowHCentered};
32
- margin-top: -5px;
32
+ margin-top: ${theme.spacing(-0.5)};
33
33
  `,
34
34
  content: css`
35
35
  ${theme.cssMixins.colVCentered};
36
36
  font-family: 'Uni-Neue-Regular';
37
37
  font-size: 18px;
38
38
  color: #423b46;
39
- margin-top: 64px;
39
+ margin-top: ${theme.spacing(8)};
40
40
  text-align: center;
41
41
  `,
42
42
  check: css`
43
43
  width: 100%;
44
44
  ${theme.cssMixins.rowHCentered};
45
- margin-top: 82px;
45
+ margin-top: ${theme.spacing(10)};
46
46
  `,
47
47
  doneButton: css`
48
48
  width: 100%;
@@ -67,7 +67,7 @@ export function TxDoneModal({
67
67
  </Box>
68
68
  <Box css={styles.content}>
69
69
  {content.map((item) => (
70
- <Box sx={{ marginTop: '10px' }} key={item}>
70
+ <Box sx={{ marginTop: theme.spacing(1) }} key={item}>
71
71
  {item}
72
72
  </Box>
73
73
  ))}
@@ -3,6 +3,7 @@ import { useAtom } from 'jotai'
3
3
  import { useResetAtom } from 'jotai/utils'
4
4
  import React, { useCallback, useEffect } from 'react'
5
5
 
6
+ import { useTheme } from '@mui/material'
6
7
  import { useAppDispatch, useAppSelector } from '../hooks/useRedux'
7
8
  import { resetState, setError } from '../store/widgets.reducers'
8
9
  import { selectWidgetState } from '../store/widgets.selectors'
@@ -27,6 +28,7 @@ export function WidgetWrapper({
27
28
  handleSuccess,
28
29
  children,
29
30
  }: WCProps<Props>): React.ReactElement | null {
31
+ const theme = useTheme()
30
32
  const dispatch = useAppDispatch()
31
33
  const { step } = useAppSelector(selectWidgetState)
32
34
  const [{ state, failReason, txReceipt }] = useAtom(sendTxAtom)
@@ -63,7 +65,7 @@ export function WidgetWrapper({
63
65
  overflowY='auto'
64
66
  onClose={handleCloseModal}
65
67
  width='480px'
66
- padding='30px 40px'
68
+ padding={theme.spacing(4, 5)}
67
69
  disableBackdropClick
68
70
  >
69
71
  <HumaModalHeader onClose={handleCloseModal} height={0} />
@@ -23,11 +23,11 @@ export function WrapperModal({
23
23
  ${theme.cssMixins.rowHCentered};
24
24
  font-family: 'Uni-Neue-Bold';
25
25
  font-size: 20px;
26
- margin-top: -5px;
26
+ margin-top: ${theme.spacing(-0.5)};
27
27
  `,
28
28
  content: css`
29
29
  ${theme.cssMixins.rowHCentered};
30
- margin-top: 30px;
30
+ margin-top: ${theme.spacing(4)};
31
31
  font-family: 'Uni-Neue-Regular';
32
32
  font-size: 16px;
33
33
  line-height: 24px;
@@ -23,7 +23,7 @@ export function HumaModal({
23
23
  overflow,
24
24
  overflowY,
25
25
  width = '480px',
26
- padding = '30px',
26
+ padding = '32px',
27
27
  disableBackdropClick = false,
28
28
  }: HumaModalType): React.ReactElement {
29
29
  const { isXsSize } = useMQ()