-
Notifications
You must be signed in to change notification settings - Fork 15
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(exam): add export to calendar button #154
base: develop
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.
Copilot reviewed 10 out of 20 changed files in this pull request and generated 2 comments.
Files not reviewed (10)
- Dockerfile: Language not supported
- android/app/build.gradle: Language not supported
- app.config.json: Language not supported
- docs/Dockerfile: Language not supported
- ios/NeulandNext.xcodeproj/project.pbxproj: Language not supported
- ios/NeulandNext/Info.plist: Language not supported
- package.json: Language not supported
- src/data/licenses.json: Language not supported
- src/localization/de/common.json: Language not supported
- src/localization/en/common.json: Language not supported
|
||
if (!granted) { | ||
const { status } = await Calendar.requestCalendarPermissionsAsync() | ||
console.log(status) |
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.
Remove the console log statement or handle it appropriately for production.
console.log(status) | |
return status === 'granted' |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
if (!granted) { | ||
return false | ||
} | ||
const duration = Number(type?.match(/\d+/)?.[0] ?? 90) |
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.
Add error handling or a default value for the duration extraction to handle cases where type is not in the expected format.
const duration = Number(type?.match(/\d+/)?.[0] ?? 90) | |
const duration = Number(type?.match(/\d+/)?.[0]) || 90 |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
No description provided.