File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import { Flex , FlexProps , useMediaQuery } from "@chakra-ui/react"
2
+ import { Center , FlexProps , useMediaQuery } from "@chakra-ui/react"
3
3
import { lightTheme as oldTheme } from "../theme"
4
4
5
5
export interface IProps extends FlexProps {
@@ -15,7 +15,7 @@ const BannerNotification: React.FC<IProps> = ({
15
15
return (
16
16
< >
17
17
{ shouldShow && (
18
- < Flex
18
+ < Center
19
19
maxW = { isLGScreen ? oldTheme . variables . maxPageWidth : "100%" }
20
20
w = "100%"
21
21
py = "4"
@@ -30,7 +30,7 @@ const BannerNotification: React.FC<IProps> = ({
30
30
{ ...props }
31
31
>
32
32
{ children }
33
- </ Flex >
33
+ </ Center >
34
34
) }
35
35
</ >
36
36
)
Original file line number Diff line number Diff line change @@ -3,15 +3,14 @@ import BannerNotification from "../BannerNotification"
3
3
import Translation from "../Translation"
4
4
5
5
import { TranslationKey } from "../../utils/translations"
6
- import { Center , Text } from "@chakra-ui/react"
6
+ import { Text } from "@chakra-ui/react"
7
7
8
8
export interface IProps {
9
9
translationString : TranslationKey
10
10
}
11
11
12
12
const PostMergeBanner : React . FC < IProps > = ( { translationString } ) => (
13
- < Center
14
- as = { BannerNotification }
13
+ < BannerNotification
15
14
shouldShow = { true }
16
15
zIndex = { 1 }
17
16
textAlign = "center"
@@ -24,7 +23,7 @@ const PostMergeBanner: React.FC<IProps> = ({ translationString }) => (
24
23
< Text maxW = "100ch" m = { 0 } p = { 0 } >
25
24
< Translation id = { translationString } />
26
25
</ Text >
27
- </ Center >
26
+ </ BannerNotification >
28
27
)
29
28
30
29
export default PostMergeBanner
Original file line number Diff line number Diff line change @@ -5,14 +5,8 @@ import Emoji from "./Emoji"
5
5
import Link from "./Link"
6
6
7
7
const UpgradeBannerNotification : React . FC = ( ) => (
8
- < BannerNotification justifyContent = "center" shouldShow >
9
- < Emoji
10
- text = ":megaphone:"
11
- alignSelf = "center"
12
- mr = { 4 }
13
- fontSize = "2xl"
14
- flexShrink = "0"
15
- />
8
+ < BannerNotification shouldShow >
9
+ < Emoji text = ":megaphone:" mr = { 4 } fontSize = "2xl" flexShrink = "0" />
16
10
< Box >
17
11
< b > We've deprecated our use of 'Eth1' and 'Eth2' terms.</ b > { " " }
18
12
< Link to = "https://blog.ethereum.org/2022/01/24/the-great-eth2-renaming/" >
You can’t perform that action at this time.
0 commit comments