Skip to content

Commit 9767da1

Browse files
Copilot0xrinegade
andcommitted
Upgrade react-scripts to 5.1.0-next.26 and fix TypeScript compatibility issues
Co-authored-by: 0xrinegade <[email protected]>
1 parent 73f8a17 commit 9767da1

File tree

20 files changed

+16557
-12493
lines changed

20 files changed

+16557
-12493
lines changed

package-lock.json

Lines changed: 15533 additions & 11713 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"playwright": "^1.54.1",
173173
"postcss": "^8.5.6",
174174
"prettier": "^3.6.2",
175-
"react-scripts": "5.0.1",
175+
"react-scripts": "5.1.0-next.26",
176176
"typescript": "^5.8.3"
177177
},
178178
"main": "public/electron.js",

src/components/Footer/styles.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Link } from '@mui/material';
21
import { Link as RouterLink } from 'react-router-dom';
32
import styled from 'styled-components';
43
import { RowContainer } from '../../pages/commonStyles';

src/components/HelpCenter/HelpCenter.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ import {
77
Search,
88
AccountBalanceWallet,
99
Send,
10-
GetApp,
11-
History,
1210
Settings,
1311
TrendingUp,
14-
SwapHoriz,
15-
Pool,
1612
Security,
1713
Help
1814
} from '@mui/icons-material';

src/pages/CreateWallet/components/AddTokens.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ const AddTokens = () => {
188188
fontSize={'1.5rem'}
189189
style={{
190190
color: isBalanceLowerCost
191-
? var(--error-main)
192-
: var(--success-main),
191+
? 'var(--error-main)'
192+
: 'var(--success-main)',
193193
}}
194194
>
195195
{formatNumberToUSFormat(
@@ -302,7 +302,7 @@ const AddTokens = () => {
302302
</Card>{' '}
303303
<BottomLink
304304
needOr={false}
305-
linkColor={var(--success-main)}
305+
linkColor={'var(--success-main)'}
306306
toText={'Skip for now'}
307307
to={'/wallet'}
308308
/>

src/pages/CreateWallet/components/ConfirmSeedPhrase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const SmallButton = styled(({ theme, isSelected, ...props }) => (
3636
}
3737
borderColor={
3838
isSelected
39-
? var(--interactive-primary)
39+
? 'var(--interactive-primary)'
4040
: theme.customPalette.grey.dark
4141
}
4242
btnWidth="auto"

src/pages/RestoreWallet/DerivableAccounts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const AccountItem = ({ theme, publicKey, setForceUpdate }) => {
232232
}}
233233
/>
234234
<Row margin="0 0 0 1rem" direction="column" align="flex-start">
235-
<Title color={var(--success-main)}>{`${stripDigitPlaces(
235+
<Title color={'var(--success-main)'}>{`${stripDigitPlaces(
236236
amount / Math.pow(10, decimals),
237237
decimals,
238238
)} ${tokenName ?? (mint ? abbreviateAddress(mint) : 'Unknown')} ${

src/pages/Wallet/components/AddAccountPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function AddAccountDialog({ open, onAdd, onClose }) {
6363
</RowContainer>
6464
{name.length > 16 && (
6565
<RowContainer width="90%" margin="2rem 0 0 0">
66-
<Title color={var(--error-main)}>
66+
<Title color={'var(--error-main)'}>
6767
Sorry, your account name shouldn't be longer than 16 symbols
6868
</Title>
6969
</RowContainer>

src/pages/Wallet/components/AddTokenPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export default function AddTokenDialog({
242242
</RowContainer>
243243
{tokenName.length > 16 && (
244244
<RowContainer width="90%" margin="2rem 0 0 0">
245-
<Title color={var(--error-main)}>
245+
<Title color={'var(--error-main)'}>
246246
Sorry, token name shouldn't be longer than 16 symbols
247247
</Title>
248248
</RowContainer>
@@ -258,7 +258,7 @@ export default function AddTokenDialog({
258258
</RowContainer>
259259
{tokenSymbol.length > 8 && (
260260
<RowContainer width="90%" margin="2rem 0 0 0">
261-
<Title color={var(--error-main)}>
261+
<Title color={'var(--error-main)'}>
262262
Sorry, token symbol shouldn't be longer than 8 symbols
263263
</Title>
264264
</RowContainer>

src/pages/Wallet/components/AssetsTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const AddTokenButton = ({
140140

141141
export const GreyTitle = styled(({ theme, ...props }) => (
142142
<Title
143-
color={var(--text-secondary)}
143+
color={'var(--text-secondary)'}
144144
fontFamily="Avenir Next Demi"
145145
fontSize="1.4rem"
146146
{...props}
@@ -149,7 +149,7 @@ export const GreyTitle = styled(({ theme, ...props }) => (
149149
white-space: nowrap;
150150
`;
151151

152-
const StyledTr = styled.tr`
152+
const StyledTr = styled.tr<{ disableHover?: boolean }>`
153153
height: 7rem;
154154
155155
&:nth-child(2n) td {

0 commit comments

Comments
 (0)