Skip to content

Commit

Permalink
Fixes[MemberDetail] : Refactor CSS files in src/screens/MemberDetail …
Browse files Browse the repository at this point in the history
…and updated the import file (#3373)

* Refactor css

* Update customTableCell.tsx

* Update customTableCell.tsx
  • Loading branch information
Bittukr7479 authored Jan 22, 2025
1 parent f9fdea1 commit 366dbfd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 690 deletions.
2 changes: 1 addition & 1 deletion src/components/MemberDetail/EventsAttendedMemberModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '@mui/material';
import { Modal } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import styles from '../../screens/MemberDetail/MemberDetail.module.css';
import styles from '../../style/app.module.css';
import { CustomTableCell } from './customTableCell';
/**
* Modal component to display paginated list of events attended by a member
Expand Down
4 changes: 1 addition & 3 deletions src/components/MemberDetail/customTableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useQuery } from '@apollo/client';
import { CircularProgress, TableCell, TableRow } from '@mui/material';
import { EVENT_DETAILS } from 'GraphQl/Queries/Queries';
import React from 'react';
import styles from '../../screens/MemberDetail/MemberDetail.module.css';
import styles from '../../style/app.module.css';
import { Link } from 'react-router-dom';
/**
* Custom table cell component to display event details
Expand All @@ -29,7 +29,6 @@ export const CustomTableCell: React.FC<{ eventId: string }> = ({ eventId }) => {
</TableCell>
</TableRow>
);
/*istanbul ignore next*/
if (error) {
return (
<TableRow data-testid="error-state">
Expand All @@ -40,7 +39,6 @@ export const CustomTableCell: React.FC<{ eventId: string }> = ({ eventId }) => {
);
}
const event = data?.event;
/*istanbul ignore next*/
if (!event) {
return (
<TableRow data-testid="no-event-state">
Expand Down
Loading

0 comments on commit 366dbfd

Please sign in to comment.