Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added district wise data #13

wants to merge 1 commit into from

Conversation

vaibav03
Copy link
Collaborator

No description provided.

@vaibav03 vaibav03 linked an issue Dec 13, 2024 that may be closed by this pull request
2 tasks
Copy link
Owner

@Ashrockzzz2003 Ashrockzzz2003 left a 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)
),
}));

Copy link
Owner

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.

Comment on lines +85 to +122
<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>
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

District wise stats.
2 participants