Skip to content

Commit 2df636c

Browse files
committed
refactor: postmergebanner to chakra
1 parent 135c267 commit 2df636c

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed
Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
import React from "react"
2-
import styled from "@emotion/styled"
32
import BannerNotification from "../BannerNotification"
43
import Translation from "../Translation"
54

65
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 { Flex, Text } from "@chakra-ui/react"
227

238
export interface IProps {
249
translationString: TranslationKey
2510
}
2611

2712
const PostMergeBanner: React.FC<IProps> = ({ translationString }) => (
28-
<StyledBannerNotification shouldShow={true}>
29-
<p>
13+
<Flex
14+
as={BannerNotification}
15+
shouldShow={true}
16+
zIndex={1}
17+
justifyContent="center"
18+
textAlign="center"
19+
sx={{
20+
a: {
21+
"text-decoration": "underline",
22+
},
23+
}}
24+
>
25+
<Text maxW="100ch" m={0} p={0}>
3026
<Translation id={translationString} />
31-
</p>
32-
</StyledBannerNotification>
27+
</Text>
28+
</Flex>
3329
)
3430

3531
export default PostMergeBanner

0 commit comments

Comments
 (0)