We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70f3ec commit 25717c4Copy full SHA for 25717c4
src/components/CommunityPortal/CPDashboard.jsx
@@ -7,6 +7,9 @@ export function CPDashboard() {
7
const [events, setEvents] = useState([]);
8
const [search, setSearch] = useState('');
9
10
+ // Get today's date in YYYY-MM-DD format for min date restriction
11
+ const today = new Date().toISOString().split('T')[0];
12
+
13
useEffect(() => {
14
const mockEvents = [
15
{
@@ -79,7 +82,7 @@ export function CPDashboard() {
79
82
<Input type="radio" name="dates" /> This Weekend
80
83
</div>
81
84
- <Input type="date" placeholder="Ending After" className="date-filter" />
85
+ <Input type="date" placeholder="Ending After" className="date-filter" min={today} />
86
87
<div className="filter-item">
88
<label htmlFor="online-only">Online</label>
0 commit comments