This repository was archived by the owner on Mar 1, 2024. It is now read-only.
File tree 3 files changed +24
-4
lines changed
3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change
1
+ @charset "UTF-8" ;
2
+ /**
3
+ Container customization
4
+ */
5
+
6
+ .container .center {
7
+ display : flex;
8
+ align-items : center;
9
+ justify-content : center;
10
+ }
Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
3
import * as React from "react" ;
4
+ import cn from "classnames" ;
5
+
6
+ import "./Container.css" ;
4
7
5
8
type Props = { |
6
9
+ children ? : React . Node ,
10
+ + className ? : string ,
7
11
| } ;
8
12
9
- function Container ( props : Props ) : React . Node {
10
- return < div className = { "container" } > { props . children } </ div > ;
13
+ function Container ( { className, children } : Props ) : React . Node {
14
+ const classes = cn ( "container" , className ) ;
15
+ return < div className = { classes } > { children } </ div > ;
11
16
}
12
17
13
18
export default Container ;
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ import type { Props as AccountDropdownProps } from "../AccountDropdown/AccountDr
8
8
export type Props = { |
9
9
+ children ? : React . Node ,
10
10
/**
11
- * href attributefor the logo
11
+ * header alignment
12
+ */
13
+ + align ? : string ,
14
+ /**
15
+ * href attribute for the logo
12
16
*/
13
17
+ href ? : string ,
14
18
/**
@@ -38,6 +42,7 @@ export type Props = {|
38
42
const SiteHeader = ( {
39
43
children,
40
44
href,
45
+ align,
41
46
imageURL,
42
47
alt,
43
48
notificationsTray : notificationsTrayFromProps ,
@@ -55,7 +60,7 @@ const SiteHeader = ({
55
60
56
61
return (
57
62
< div className = "header py-4" >
58
- < Container >
63
+ < Container className = { align } >
59
64
< div className = "d-flex" >
60
65
{ children || (
61
66
< React . Fragment >
You can’t perform that action at this time.
0 commit comments