Skip to content

Commit

Permalink
Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 13, 2023
1 parent 4b42a6a commit 638e944
Show file tree
Hide file tree
Showing 4 changed files with 2,805 additions and 3,849 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"lodash": "^4.17.21",
"next": "^13.5.2",
"papaparse": "^5.3.2",
"protobufjs": "^7.2.4",
"qrcode.react": "^3.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
3 changes: 1 addition & 2 deletions src/components/safe-messages/MsgSummary/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Box, CircularProgress, Typography } from '@mui/material'
import type { Palette } from '@mui/material'
import type { ReactElement } from 'react'
import { SafeMessageStatus } from '@safe-global/safe-gateway-typescript-sdk'
import type { SafeMessage } from '@safe-global/safe-gateway-typescript-sdk'
Expand All @@ -15,7 +14,7 @@ import classNames from 'classnames'

import txSummaryCss from '@/components/transactions/TxSummary/styles.module.css'

const getStatusColor = (value: SafeMessageStatus, palette: Palette) => {
const getStatusColor = (value: SafeMessageStatus, palette: Record<string, Record<string, string>>): string => {
switch (value) {
case SafeMessageStatus.CONFIRMED:
return palette.success.main
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/TxSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import useIsPending from '@/hooks/useIsPending'
import useABTesting from '@/services/tracking/useAbTesting'
import { AbTest } from '@/services/tracking/abTesting'

const getStatusColor = (value: TransactionStatus, palette: Palette) => {
const getStatusColor = (value: TransactionStatus, palette: Palette | Record<string, Record<string, string>>) => {
switch (value) {
case TransactionStatus.SUCCESS:
return palette.success.main
Expand Down
Loading

0 comments on commit 638e944

Please sign in to comment.