Skip to content

Commit

Permalink
Merge branch 'develop-postgres' into contributors/anushka-gupta/Issue…
Browse files Browse the repository at this point in the history
…3316
  • Loading branch information
Anushkaguptaaaa committed Jan 28, 2025
2 parents 8456338 + 3c85403 commit 74746f0
Show file tree
Hide file tree
Showing 8 changed files with 1,311 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **default**(): `JSX.Element`
Defined in: [src/screens/OrgPost/OrgPost.tsx:70](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgPost/OrgPost.tsx#L70)
Defined in: [src/screens/OrgPost/OrgPost.tsx:71](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgPost/OrgPost.tsx#L71)

This function is used to display the posts of the organization. It displays the posts in a card format.
It also provides the functionality to create a new post. The user can also sort the posts based on the date of creation.
Expand Down
14 changes: 0 additions & 14 deletions src/components/CollapsibleDropdown/CollapsibleDropdown.module.css

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/CollapsibleDropdown/CollapsibleDropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import { Button, Collapse } from 'react-bootstrap';
import type { TargetsType } from 'state/reducers/routesReducer';
import styles from './CollapsibleDropdown.module.css';
import styles from '../../style/app.module.css';
import IconComponent from 'components/IconComponent/IconComponent';
import { NavLink, useLocation, useNavigate } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
Expand Down Expand Up @@ -48,7 +48,7 @@ const collapsibleDropdown = ({
aria-expanded={showDropdown}
data-testid="collapsible-dropdown"
>
<div className={styles.iconWrapper}>
<div className={styles.collapsibleDropdownIconWrapper}>
<IconComponent
name={name}
fill={showDropdown ? 'var(--bs-white)' : 'var(--bs-secondary)'}
Expand All @@ -73,15 +73,15 @@ const collapsibleDropdown = ({
key={name}
variant={isActive === true ? 'success' : 'light'}
size="sm"
className={`${styles.collapseBtn} ${
className={`${styles.collapsibleDropdownCollapseBtn} ${
isActive === true ? 'text-white' : 'text-secondary'
}`}
onClick={(): void => {
navigate(url);
}}
data-testid={`collapsible-dropdown-btn-${index}`}
>
<div className={styles.iconWrapperSm}>
<div className={styles.collapsibleDropdownIconWrapperSm}>
<i className={`fa ${stringIcon}`} />
</div>
{tCommon(name || '')}
Expand Down
Loading

0 comments on commit 74746f0

Please sign in to comment.