Skip to content

Commit

Permalink
Refactor CSS files in src/screens/OrganizationFundCampaign (#2934)
Browse files Browse the repository at this point in the history
* Update organization-fund-campaign css

* Fix linting

* Fix some issues

* Fix import issue

* Fix color change

* Update src/style/app.module.css

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
mandeepnh5 and coderabbitai[bot] authored Dec 26, 2024
1 parent 0cede94 commit 4386ee0
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 211 deletions.
4 changes: 2 additions & 2 deletions src/screens/OrganizationFundCampaign/CampaignModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ChangeEvent } from 'react';
import React, { useEffect, useState } from 'react';
import { Button, Form, Modal } from 'react-bootstrap';
import { currencyOptions, currencySymbols } from 'utils/currency';
import styles from './OrganizationFundCampaign.module.css';
import styles from '../../style/app.module.css';
import { useTranslation } from 'react-i18next';
import { useMutation } from '@apollo/client';
import {
Expand Down Expand Up @@ -301,7 +301,7 @@ const CampaignModal: React.FC<InterfaceCampaignModal> = ({
{/* Button to create the campaign */}
<Button
type="submit"
className={styles.greenregbtn}
className={styles.greenregbtnOrganizationFundCampaign}
data-testid="submitCampaignBtn"
>
{t(mode === 'edit' ? 'updateCampaign' : 'createCampaign')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import dayjs from 'dayjs';
import Loader from 'components/Loader/Loader';
import CampaignModal from './CampaignModal';
import { FUND_CAMPAIGN } from 'GraphQl/Queries/fundQueries';
import styles from './OrganizationFundCampaign.module.css';
import styles from '../../style/app.module.css';
import { currencySymbols } from 'utils/currency';
import type {
InterfaceCampaignInfo,
Expand Down Expand Up @@ -339,14 +339,14 @@ const orgFundCampaign = (): JSX.Element => {
<Typography color="text.primary">{t('title')}</Typography>
</Breadcrumbs>

<div className={styles.btnsContainer}>
<div className={styles.input}>
<div className={styles.btnsContainerOrganizationFundCampaign}>
<div className={styles.inputOrganizationFundCampaign}>
<Form.Control
type="name"
placeholder={tCommon('searchByName')}
autoComplete="off"
required
className={styles.inputField}
className={styles.inputFieldOrganizationFundCampaign}
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
data-testid="searchFullName"
Expand All @@ -358,13 +358,13 @@ const orgFundCampaign = (): JSX.Element => {
<Search />
</Button>
</div>
<div className={styles.btnsBlock}>
<div className={styles.btnsBbtnsBlockOrganizationFundCampaignlock}>
<div className="d-flex justify-space-between">
<Dropdown>
<Dropdown.Toggle
variant="success"
id="dropdown-basic"
className={styles.dropdown}
className={styles.dropdownOrganizationFundCampaign}
data-testid="filter"
>
<Sort className={'me-1'} />
Expand Down Expand Up @@ -426,7 +426,9 @@ const orgFundCampaign = (): JSX.Element => {
),
}}
sx={dataGridStyle}
getRowClassName={() => `${styles.rowBackground}`}
getRowClassName={() =>
`${styles.rowBackgroundOrganizationFundCampaign}`
}
autoHeight
rowHeight={65}
rows={campaigns.map((campaign, index) => ({
Expand Down

This file was deleted.

Loading

0 comments on commit 4386ee0

Please sign in to comment.