File tree 1 file changed +15
-20
lines changed
1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
- import styled from "@emotion/styled"
3
2
import BannerNotification from "../BannerNotification"
4
3
import Translation from "../Translation"
5
4
6
5
import { TranslationKey } from "../../utils/translations"
7
-
8
- const StyledBannerNotification = styled ( BannerNotification ) `
9
- display: flex;
10
- z-index: 1;
11
- justify-content: center;
12
- p {
13
- max-width: 100ch;
14
- margin: 0;
15
- padding: 0;
16
- }
17
- a {
18
- text-decoration: underline;
19
- }
20
- text-align: center;
21
- `
6
+ import { Center , Text } from "@chakra-ui/react"
22
7
23
8
export interface IProps {
24
9
translationString : TranslationKey
25
10
}
26
11
27
12
const PostMergeBanner : React . FC < IProps > = ( { translationString } ) => (
28
- < StyledBannerNotification shouldShow = { true } >
29
- < p >
13
+ < Center
14
+ as = { BannerNotification }
15
+ shouldShow = { true }
16
+ zIndex = { 1 }
17
+ textAlign = "center"
18
+ sx = { {
19
+ a : {
20
+ "text-decoration" : "underline" ,
21
+ } ,
22
+ } }
23
+ >
24
+ < Text maxW = "100ch" m = { 0 } p = { 0 } >
30
25
< Translation id = { translationString } />
31
- </ p >
32
- </ StyledBannerNotification >
26
+ </ Text >
27
+ </ Center >
33
28
)
34
29
35
30
export default PostMergeBanner
You can’t perform that action at this time.
0 commit comments