Skip to content

Commit 765545b

Browse files
author
lukaw3d
committed
Remove some unused exports that would break react-refresh
1 parent 976297c commit 765545b

6 files changed

Lines changed: 6 additions & 56 deletions

File tree

src/app/components/ConsensusTransactionMethod/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type MethodIconProps = {
3030
truncate?: boolean
3131
}
3232

33-
export const colorMap = {
33+
const colorMap = {
3434
blue: {
3535
primary: COLORS.brandMedium,
3636
secondary: COLORS.brandLightBlue,

src/app/components/ErrorDisplay/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const errorMap: Record<
102102
[AppErrors.InvalidVote]: t => ({ title: t('errors.invalidVote'), message: null }),
103103
}
104104

105-
export const errorFormatter = (t: TFunction, error: ErrorPayload, scope: SearchScope | undefined) => {
105+
const errorFormatter = (t: TFunction, error: ErrorPayload, scope: SearchScope | undefined) => {
106106
return errorMap[error.code](t, error, scope)
107107
}
108108

src/app/components/StatusIcon/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const statusFgColor: Record<TxStatus, string> = {
2929
pending: COLORS.warningColor,
3030
}
3131

32-
export const statusIcon: Record<TxStatus, ReactNode> = {
32+
const statusIcon: Record<TxStatus, ReactNode> = {
3333
unknown: <LockIcon color="inherit" fontSize="inherit" />,
3434
success: <CheckCircleIcon color="inherit" fontSize="inherit" />,
3535
partialsuccess: <CheckCircleIcon color="success" fontSize="inherit" />,

src/app/components/UptimeStatus/__tests__/index.test.tsx

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/app/components/UptimeStatus/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getUptimeItemColor = (value: number | undefined) => {
1818
return COLORS.errorIndicatorBackground
1919
}
2020

21-
export const ensureTwelveElements = (inputArray: number[] = []) => {
21+
const ensureTwelveElements = (inputArray: number[] = []) => {
2222
return [...inputArray, ...new Array(12).fill(undefined)].slice(0, 12)
2323
}
2424

src/app/pages/ParatimeDashboardPage/ActiveAccounts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from '../../utils/chart-utils'
1717
import { SearchScope } from '../../../types/searchScope'
1818

19-
export const getActiveAccountsWindows = (duration: ChartDuration, windows: Windows[]) => {
19+
const getActiveAccountsWindows = (duration: ChartDuration, windows: Windows[]) => {
2020
switch (duration) {
2121
case ChartDuration.TODAY:
2222
return filterHourlyActiveAccounts(windows)
@@ -27,7 +27,7 @@ export const getActiveAccountsWindows = (duration: ChartDuration, windows: Windo
2727
}
2828
}
2929

30-
export const getChartLabelFormatParams = (duration: ChartDuration) => {
30+
const getChartLabelFormatParams = (duration: ChartDuration) => {
3131
switch (duration) {
3232
case ChartDuration.TODAY:
3333
return {

0 commit comments

Comments
 (0)