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

Refactoring CSS files: merged FundCompaignPledge styles into global app.module.css #2706

Merged
273 changes: 0 additions & 273 deletions src/screens/FundCampaignPledge/FundCampaignPledge.module.css

This file was deleted.

28 changes: 14 additions & 14 deletions src/screens/FundCampaignPledge/FundCampaignPledge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Button, Dropdown, Form } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import { Navigate, useParams } from 'react-router-dom';
import { currencySymbols } from 'utils/currency';
import styles from './FundCampaignPledge.module.css';
import styles from '../../style/app.module.css';
import PledgeDeleteModal from './PledgeDeleteModal';
import PledgeModal from './PledgeModal';
import { Breadcrumbs, Link, Stack, Typography } from '@mui/material';
Expand Down Expand Up @@ -233,14 +233,14 @@ const fundCampaignPledge = (): JSX.Element => {
src={user.image}
alt="pledge"
data-testid={`image${index + 1}`}
className={styles.TableImage}
className={styles.TableImagePledge}
/>
) : (
<div className={styles.avatarContainer}>
<Avatar
key={user._id + '1'}
containerStyle={styles.imageContainer}
avatarStyle={styles.TableImage}
containerStyle={styles.imageContainerPledge}
avatarStyle={styles.TableImagePledge}
name={user.firstName + ' ' + user.lastName}
alt={user.firstName + ' ' + user.lastName}
/>
Expand Down Expand Up @@ -425,14 +425,14 @@ const fundCampaignPledge = (): JSX.Element => {
>
<input
type="radio"
className={`btn-check ${styles.toggleBtn}`}
className={`btn-check ${styles.toggleBtnPledge}`}
name="btnradio"
id="pledgedRadio"
checked={progressIndicator === 'pledged'}
onChange={() => setProgressIndicator('pledged')}
/>
<label
className={`btn btn-outline-primary ${styles.toggleBtn}`}
className={`btn btn-outline-primary ${styles.toggleBtnPledge}`}
htmlFor="pledgedRadio"
>
{t('pledgedAmount')}
Expand All @@ -447,7 +447,7 @@ const fundCampaignPledge = (): JSX.Element => {
checked={progressIndicator === 'raised'}
/>
<label
className={`btn btn-outline-primary ${styles.toggleBtn}`}
className={`btn btn-outline-primary ${styles.toggleBtnPledge}`}
htmlFor="raisedRadio"
>
{t('raisedAmount')}
Expand All @@ -470,14 +470,14 @@ const fundCampaignPledge = (): JSX.Element => {
</div>
</div>
</div>
<div className={`${styles.btnsContainer} gap-4 flex-wrap`}>
<div className={`${styles.input} mb-1`}>
<div className={`${styles.btnsContainerPledge} gap-4 flex-wrap`}>
<div className={`${styles.inputPledge} mb-1`}>
<Form.Control
type="name"
placeholder={t('searchPledger')}
autoComplete="off"
required
className={styles.inputField}
className={styles.inputFieldPledge}
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
data-testid="searchPledger"
Expand Down Expand Up @@ -557,7 +557,7 @@ const fundCampaignPledge = (): JSX.Element => {
),
}}
sx={dataGridStyle}
getRowClassName={() => `${styles.rowBackground}`}
getRowClassName={() => `${styles.rowBackgroundPledge}`}
autoHeight
rowHeight={65}
rows={pledges.map((pledge) => ({
Expand Down Expand Up @@ -607,14 +607,14 @@ const fundCampaignPledge = (): JSX.Element => {
src={user.image}
alt="pledger"
data-testid={`extraImage${index + 1}`}
className={styles.TableImage}
className={styles.TableImagePledge}
/>
) : (
<div className={styles.avatarContainer}>
<Avatar
key={user._id + '1'}
containerStyle={styles.imageContainer}
avatarStyle={styles.TableImage}
containerStyle={styles.imageContainerPledge}
avatarStyle={styles.TableImagePledge}
name={user.firstName + ' ' + user.lastName}
alt={user.firstName + ' ' + user.lastName}
dataTestId={`extraAvatar${index + 1}`}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/FundCampaignPledge/PledgeDeleteModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Modal } from 'react-bootstrap';
import styles from './FundCampaignPledge.module.css';
import styles from '../../style/app.module.css';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useMutation } from '@apollo/client';
Expand Down
Loading
Loading