File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed
components/containers/Row Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
import S from './styles' ;
2
2
3
- export default function Row ( { customClass, children, styles } ) {
4
- return (
5
- < S . Row $alignment = { customClass } style = { styles } >
6
- { children }
7
- </ S . Row >
8
- ) ;
3
+ export function Row ( { customClass, children, styles } ) {
4
+ return < S . Row style = { styles } > { children } </ S . Row > ;
5
+ }
6
+
7
+ export function RowAlignLeft ( { customClass , children , styles } ) {
8
+ return < S . RowAlignLeft style = { styles } > { children } </ S . RowAlignLeft > ;
9
9
}
Original file line number Diff line number Diff line change @@ -9,13 +9,12 @@ const Row = styled.div`
9
9
${ m . desktopBreakpointMinus ( css `
10
10
justify-content: space-between;
11
11
` ) }
12
-
13
- //check props to inject alignment css
14
- ${ props => ( props . $alignment === 'align__left' ? AlignLeft : '' ) }
15
12
` ;
16
13
17
- const AlignLeft = css `
18
- justify-content : left !important ;
14
+ const RowAlignLeft = styled . div `
15
+ display: flex;
16
+ flex-wrap: wrap;
17
+ justify-content: left;
19
18
` ;
20
19
21
- export default { Row } ;
20
+ export default { Row, RowAlignLeft } ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { OurGoalsCardsColumns } from '@/components/containers/CardColumns/OurGoa
10
10
import Title from '@/components/snippets/Title' ;
11
11
import Wrapper from '@/components/containers/Wrapper' ;
12
12
import Container from '@/components/containers/Container' ;
13
- import Row from '@/components/containers/Row' ;
13
+ import { Row , RowAlignLeft } from '@/components/containers/Row' ;
14
14
import Member from '@/components/containers/Member' ;
15
15
import { whoWeAre } from '@/utils/about' ;
16
16
@@ -233,7 +233,7 @@ export default function AboutUs() {
233
233
< Wrapper customClass = 'primary__accent' >
234
234
< Container >
235
235
< Title title = 'Who we are' />
236
- < Row customClass = 'align__left' >
236
+ < RowAlignLeft >
237
237
{ whoWeAre . map ( _ => {
238
238
return (
239
239
< Member
@@ -248,7 +248,7 @@ export default function AboutUs() {
248
248
/>
249
249
) ;
250
250
} ) }
251
- </ Row >
251
+ </ RowAlignLeft >
252
252
</ Container >
253
253
</ Wrapper >
254
254
</ RevealContentContainer >
You can’t perform that action at this time.
0 commit comments