@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.
- package/dist/cjs/index.cjs +94 -122
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +94 -122
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Activity.tsx +6 -5
- package/src/components/ApproveAllowanceModal.tsx +3 -3
- package/src/components/ChainSupportProvider.tsx +3 -1
- package/src/components/ChooseAmountModal.tsx +15 -15
- package/src/components/ConfirmTransferModal.tsx +9 -7
- package/src/components/CreditLine/borrow/1-Evaluation.tsx +5 -5
- package/src/components/ErrorModal.tsx +9 -9
- package/src/components/Factoring/FactoredList.tsx +6 -6
- package/src/components/Factoring/UpcomingList.tsx +6 -6
- package/src/components/HumaSnackBar.tsx +6 -4
- package/src/components/HumaTable.tsx +4 -4
- package/src/components/Lend/supply/1-Evaluation/EvaluationEA.tsx +3 -3
- package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +3 -3
- package/src/components/Notifi/NotifiSubscriptionModal.tsx +4 -4
- package/src/components/SignIn.tsx +5 -5
- package/src/components/SuperfluidFactoring/SuperfluidUpcomingList.tsx +3 -2
- package/src/components/SuperfluidFactoring/index.tsx +3 -2
- package/src/components/TxDoneModal.tsx +4 -4
- package/src/components/WidgetWrapper.tsx +3 -1
- package/src/components/WrapperModal.tsx +2 -2
- package/src/components/humaModal/HumaModal.tsx +1 -1
|
@@ -29,20 +29,20 @@ export function TxDoneModal({
|
|
|
29
29
|
`,
|
|
30
30
|
header: css`
|
|
31
31
|
${theme.cssMixins.rowHCentered};
|
|
32
|
-
margin-top: -
|
|
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:
|
|
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:
|
|
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:
|
|
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=
|
|
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: -
|
|
26
|
+
margin-top: ${theme.spacing(-0.5)};
|
|
27
27
|
`,
|
|
28
28
|
content: css`
|
|
29
29
|
${theme.cssMixins.rowHCentered};
|
|
30
|
-
margin-top:
|
|
30
|
+
margin-top: ${theme.spacing(4)};
|
|
31
31
|
font-family: 'Uni-Neue-Regular';
|
|
32
32
|
font-size: 16px;
|
|
33
33
|
line-height: 24px;
|