-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added district wise data #13
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor changes. If you store the accumulated vals as params for individual object, then we can simply also display the total on top.
(filterCheckOutDate === "" || row.checkOutDate === filterCheckOutDate) | ||
), | ||
})); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you precompute the accumulated values for each district and add it as a key to the individual objects.
<div className="flex flex-row flex-wrap gap-8 m-8 justify-center overflow-x-auto"> | ||
<div> | ||
<label htmlFor="checkInDate"> | ||
<b>Check In Date</b> | ||
</label> | ||
<select | ||
id="checkInDate" | ||
className="border p-2 rounded-2xl" | ||
value={filterCheckInDate} | ||
onChange={(e) => setFilterCheckInDate(e.target.value)} | ||
> | ||
<option value="">All</option> | ||
{checkInDateOptions.map((date, index) => ( | ||
<option key={index} value={date}> | ||
{date} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
<div> | ||
<label htmlFor="checkOutDate"> | ||
<b>Check Out Date</b> | ||
</label> | ||
<select | ||
id="checkOutDate" | ||
className="border p-2 rounded-2xl" | ||
value={filterCheckOutDate} | ||
onChange={(e) => setFilterCheckOutDate(e.target.value)} | ||
> | ||
<option value="">All</option> | ||
{checkOutDateOptions.map((date, index) => ( | ||
<option key={index} value={date}> | ||
{date} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use similar style as the admin page for this with a bg.
No description provided.