Skip to content

Commit 52e6554

Browse files
committed
Merge main branch into refactor/to-scss-Wrapper
2 parents d6dc0ba + 1d94296 commit 52e6554

5 files changed

Lines changed: 19 additions & 35 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
171171
- BlogPostsContainer
172172
- RevealContentContainer
173173
- Member
174+
- Row
174175
- Container
175176
- Wrapper
176-
- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
177-
- Updated SearchInput width to 100% for better styling
178-
- Reverted the prop name to styles in Container component as the change of the name introduced a styling bug
179-
- Extracted :root from themes.scss to globals.scss
180-
- Created a combineClasses function to clean up conditional class handling
177+
- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
178+
- Updated SearchInput width to 100% for better styling
179+
- Reverted the prop name to styles in Container component as the change of the name introduced a styling bug
180+
- Rename RowAlignLeft to Row
181+
- Extracted :root from themes.scss to globals.scss
182+
- Created a combineClasses function to clean up conditional class handling
183+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.row {
2+
display: flex;
3+
flex-wrap: wrap;
4+
justify-content: left;
5+
}

components/containers/Row/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import S from './styles';
1+
import styles from './Row.module.scss';
22

3-
export function Row({ customClass, children }) {
4-
return <S.Row>{children}</S.Row>;
5-
}
6-
7-
export function RowAlignLeft({ customClass, children }) {
8-
return <S.RowAlignLeft>{children}</S.RowAlignLeft>;
3+
export function Row({ children }) {
4+
return <div className={styles.row}>{children}</div>;
95
}

components/containers/Row/styles.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

pages/about.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { OurGoalsCardsColumns } from '@/components/containers/CardColumns/OurGoa
44
import Title from '@/components/snippets/Title';
55
import Wrapper from '@/components/containers/Wrapper';
66
import Container from '@/components/containers/Container';
7-
import { RowAlignLeft } from '@/components/containers/Row';
7+
import { Row } from '@/components/containers/Row';
88
import Member from '@/components/containers/Member';
99
import { whoWeAre } from '@/utils/about';
1010
import { useTheme } from 'styled-components';
@@ -230,7 +230,7 @@ export default function AboutUs() {
230230
<Wrapper customClass='primary__accent'>
231231
<Container>
232232
<Title title='Who we are' />
233-
<RowAlignLeft>
233+
<Row>
234234
{whoWeAre.map(_ => {
235235
return (
236236
<Member
@@ -245,7 +245,7 @@ export default function AboutUs() {
245245
/>
246246
);
247247
})}
248-
</RowAlignLeft>
248+
</Row>
249249
</Container>
250250
</Wrapper>
251251
</RevealContentContainer>

0 commit comments

Comments
 (0)