Skip to content

Commit d1146da

Browse files
authored
Replaced all the css into tailwind css on Content component (#1754)
1 parent bc55839 commit d1146da

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

components/Content/Content.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { cloneElement } from 'react';
22
import { array, bool, oneOf, string } from 'prop-types';
33
import Container from 'components/Container/Container';
44
import Heading from 'components/Heading/Heading';
5-
import styles from './Content.module.css';
65

76
Content.propTypes = {
87
backgroundImageSource: string,
@@ -45,7 +44,7 @@ function Content({
4544
>
4645
{title && <Heading text={title} hasTitleUnderline={hasTitleUnderline} headingLevel={3} />}
4746

48-
<div className={styles.columnsContainer}>
47+
<div className="flex justify-center items-center flex-wrap w-full [&>*]:m-4">
4948
{/* eslint-disable-next-line react/no-array-index-key */}
5049
{columns.map((column, index) => cloneElement(column, { key: index }))}
5150
</div>

components/Content/Content.module.css

-20
This file was deleted.

components/Content/__tests__/__snapshots__/Content.test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ exports[`Content should render with many props assigned 1`] = `
3939
</h3>
4040
</div>
4141
<div
42-
className="columnsContainer"
42+
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
4343
>
4444
<div>
4545
<p>
@@ -65,7 +65,7 @@ exports[`Content should render with required props 1`] = `
6565
className="content"
6666
>
6767
<div
68-
className="columnsContainer"
68+
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
6969
>
7070
<div>
7171
<p>

0 commit comments

Comments
 (0)