File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import { TypographyProps } from "styled-system "
2
+ import { Text , TextProps } from "@chakra-ui/react "
3
3
4
4
import Translation from "./Translation"
5
- import { IndicatorSpan } from "./StatLoadingMessage"
6
5
7
- export interface IProps extends TypographyProps { }
6
+ export interface IProps extends TextProps { }
8
7
9
8
const StatErrorMessage : React . FC < IProps > = ( props ) => (
10
- < IndicatorSpan fontSize = "2rem" { ...props } >
9
+ < Text as = "span" fontSize = "2rem" { ...props } >
11
10
< Translation id = "loading-error-refresh" />
12
- </ IndicatorSpan >
11
+ </ Text >
13
12
)
14
13
15
14
export default StatErrorMessage
Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import { Text } from "@chakra-ui/react"
2
+ import { Text , TextProps } from "@chakra-ui/react"
3
3
4
4
import Translation from "./Translation"
5
5
6
- export interface IProps { }
6
+ export interface IProps extends TextProps { }
7
7
8
8
const StatLoadingMessage : React . FC < IProps > = ( props ) => (
9
9
< Text as = "span" fontSize = "2rem" { ...props } >
You can’t perform that action at this time.
0 commit comments