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

Feat/issue 170 - Add option to pick dates #175

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

ishraqfatin7
Copy link
Collaborator

@ishraqfatin7 ishraqfatin7 commented Jan 23, 2025

Resolves #170

Changes

  • Integrated a date picker component.
  • Modified the API to send requests with the selected custom dates from the date picker.

Testing

  • Verified that the date picker correctly updates the meeting date.
  • Ensured that the API request sends accurate date information.

@@ -58,6 +61,8 @@ export default function BookRoomView({ onRoomBooked }: BookRoomViewProps) {
seats: preferences.seats,
});

const [date, setDate] = useState(dayjs());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the existing hook formData with a new field added there "date"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, try replacing dayjs with existing method convertToRFC3339()`

color: theme.palette.grey[50],
}),
]}
<Box sx={{ width: '50%' }}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same needs to be done in EditEventsView

@ali-ahnaf ali-ahnaf changed the base branch from develop to feat/issue-170 January 24, 2025 05:56
@ali-ahnaf ali-ahnaf changed the base branch from feat/issue-170 to develop January 24, 2025 05:57
@ali-ahnaf ali-ahnaf changed the base branch from develop to feat/issue-170 January 24, 2025 05:58
@ali-ahnaf ali-ahnaf merged commit da175ca into Cefalo:feat/issue-170 Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] add option to pick dates
2 participants