diff --git a/src/components/CommunityPortal/CPDashboard.jsx b/src/components/CommunityPortal/CPDashboard.jsx index 2764739190..769585b49b 100644 --- a/src/components/CommunityPortal/CPDashboard.jsx +++ b/src/components/CommunityPortal/CPDashboard.jsx @@ -2,7 +2,19 @@ import { useState, useEffect, useMemo } from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; -import { Container, Row, Col, Card, CardBody, Button, Input, Label } from 'reactstrap'; +import { + Container, + Row, + Alert, + Col, + Card, + CardBody, + Button, + Input, + FormGroup, + Label, +} from 'reactstrap'; +import Select from 'react-select'; import { FaCalendarAlt, FaMapMarkerAlt, FaUserAlt, FaSearch, FaTimes } from 'react-icons/fa'; import styles from './CPDashboard.module.css'; import { ENDPOINTS } from '../../utils/URL'; @@ -324,7 +336,16 @@ function CPDashboard() { const [searchQuery, setSearchQuery] = useState(''); const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); - const [pagination, setPagination] = useState({ currentPage: 1, total: 0, limit: 6 }); + const [failedLogos, setFailedLogos] = useState(new Set()); + const branchOptions = [{ value: '', label: 'Select branches', isDisabled: true }]; + const themeOptions = [{ value: '', label: 'Select themes', isDisabled: true }]; + const categoryOptions = [{ value: '', label: 'Select categories', isDisabled: true }]; + const [pagination, setPagination] = useState({ + currentPage: 1, + totalPages: 5, + total: 0, + limit: 6, + }); const FALLBACK_IMG = 'https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=600&q=60'; @@ -408,9 +429,125 @@ function CPDashboard() { /> - - - + + +
+

Search Filters

+
+
+ +
+ + setDateFilter('tomorrow')} + className={styles.radioInput} + /> + + + + setDateFilter('weekend')} + className={styles.radioInput} + /> + + +
+ + setSelectedDate(e.target.value)} + style={{ marginTop: '10px' }} + /> +
+ +
+ +
+ { + setOnlineOnly(e.target.checked); + setPagination(prev => ({ ...prev, currentPage: 1 })); + }} + />{' '} + Online Only +
+
+ +
+ + +
+ +
+ +