Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] CSS for PostCard.tsx #2935

Open
wants to merge 3 commits into
base: develop-postgres
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 0 additions & 183 deletions src/components/UserPortal/PostCard/PostCard.module.css

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/UserPortal/PostCard/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
import CommentCard from '../CommentCard/CommentCard';
import { errorHandler } from 'utils/errorHandler';
import useLocalStorage from 'utils/useLocalstorage';
import styles from './PostCard.module.css';
import styles from './../../../style/app.module.css';
import UserDefault from '../../../assets/images/defaultImg.png';

interface InterfaceCommentCardProps {
Expand Down Expand Up @@ -272,7 +272,7 @@ export default function postCard(props: InterfacePostCard): JSX.Element {
return (
<Col key={props.id} className="d-flex justify-content-center my-2">
<Card className={`${styles.cardStyles}`}>
<Card.Header className={`${styles.cardHeader}`}>
<Card.Header className={`${styles.cardHeaderPostCard}`}>
<div className={`${styles.creator}`}>
<AccountCircleIcon className="my-2" />
<p>{postCreator}</p>
Expand Down Expand Up @@ -316,7 +316,7 @@ export default function postCard(props: InterfacePostCard): JSX.Element {
}
/>
<Card.Body className="pb-0">
<Card.Title className={`${styles.cardTitle}`}>
<Card.Title className={`${styles.cardTitlePostCard}`}>
{props.title}
</Card.Title>
<Card.Subtitle style={{ color: '#808080' }}>
Expand Down Expand Up @@ -355,7 +355,7 @@ export default function postCard(props: InterfacePostCard): JSX.Element {
</div>
<div className="w-50 p-2 position-relative">
<div className="d-flex justify-content-between align-items-center">
<div className={`${styles.cardHeader} p-0`}>
<div className={`${styles.cardHeaderPostCard} p-0`}>
<AccountCircleIcon className="my-2" />
<p>{postCreator}</p>
</div>
Expand Down
Loading
Loading