Skip to content

Commit

Permalink
Replaced all the css into tailwind css on Content component (#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Nov 1, 2023
1 parent bc55839 commit d1146da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
3 changes: 1 addition & 2 deletions components/Content/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { cloneElement } from 'react';
import { array, bool, oneOf, string } from 'prop-types';
import Container from 'components/Container/Container';
import Heading from 'components/Heading/Heading';
import styles from './Content.module.css';

Content.propTypes = {
backgroundImageSource: string,
Expand Down Expand Up @@ -45,7 +44,7 @@ function Content({
>
{title && <Heading text={title} hasTitleUnderline={hasTitleUnderline} headingLevel={3} />}

<div className={styles.columnsContainer}>
<div className="flex justify-center items-center flex-wrap w-full [&>*]:m-4">
{/* eslint-disable-next-line react/no-array-index-key */}
{columns.map((column, index) => cloneElement(column, { key: index }))}
</div>
Expand Down
20 changes: 0 additions & 20 deletions components/Content/Content.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports[`Content should render with many props assigned 1`] = `
</h3>
</div>
<div
className="columnsContainer"
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
>
<div>
<p>
Expand All @@ -65,7 +65,7 @@ exports[`Content should render with required props 1`] = `
className="content"
>
<div
className="columnsContainer"
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
>
<div>
<p>
Expand Down

2 comments on commit d1146da

@vercel
Copy link

@vercel vercel bot commented on d1146da Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d1146da Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.