Skip to content

Commit c2b84fa

Browse files
committed
update types and migrate StatErrorMessage component
1 parent 0bca0c3 commit c2b84fa

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/components/StatErrorMessage.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import React from "react"
2-
import { TypographyProps } from "styled-system"
2+
import { Text, TextProps } from "@chakra-ui/react"
33

44
import Translation from "./Translation"
5-
import { IndicatorSpan } from "./StatLoadingMessage"
65

7-
export interface IProps extends TypographyProps {}
6+
export interface IProps extends TextProps {}
87

98
const StatErrorMessage: React.FC<IProps> = (props) => (
10-
<IndicatorSpan fontSize="2rem" {...props}>
9+
<Text as="span" fontSize="2rem" {...props}>
1110
<Translation id="loading-error-refresh" />
12-
</IndicatorSpan>
11+
</Text>
1312
)
1413

1514
export default StatErrorMessage

src/components/StatLoadingMessage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react"
2-
import { Text } from "@chakra-ui/react"
2+
import { Text, TextProps } from "@chakra-ui/react"
33

44
import Translation from "./Translation"
55

6-
export interface IProps {}
6+
export interface IProps extends TextProps {}
77

88
const StatLoadingMessage: React.FC<IProps> = (props) => (
99
<Text as="span" fontSize="2rem" {...props}>

0 commit comments

Comments
 (0)