fix: ta bort anteckningar från kalenderevent (#231)

This commit is contained in:
Rickard Natt och Dag 2021-03-31 10:08:34 +02:00 committed by GitHub
parent 629a049fda
commit cf85a52c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -35,7 +35,6 @@ const defaultEvent = {
startDate: '2021-06-19 13:00',
endDate: '2021-06-19 14:00',
location: 'Gubbängsskolan',
description: 'Vi går igenom hur Kanye West har presterat denna terminen',
}
const defaultProps = {
@ -106,7 +105,6 @@ test('removes any null values from the event', async () => {
startDate: '2021-06-19T11:00:00.000Z',
endDate: '2021-06-19T12:00:00.000Z',
location: 'Gubbängsskolan',
notes: 'Vi går igenom hur Kanye West har presterat denna terminen',
})
})

View File

@ -40,7 +40,6 @@ export const SaveToCalendar = ({ event }: SaveToCalendarProps) => {
startDate,
endDate,
location,
description: notes,
}: CalendarItem) => {
const auth = await RNCalendarEvents.requestPermissions()
@ -54,7 +53,6 @@ export const SaveToCalendar = ({ event }: SaveToCalendarProps) => {
? new Date(endDate).toISOString()
: new Date().toISOString(),
location,
notes,
}
const detailsWithoutEmpty = removeEmptyValues(details)