feat: reduce dependency on router and move everything to route props instead

This commit is contained in:
kolaente 2022-02-06 20:11:13 +01:00
parent 1e4ef96150
commit 84f177c80e
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
7 changed files with 50 additions and 29 deletions

View file

@ -1,4 +1,4 @@
export function parseDateOrString(rawValue: string, fallback: any): string | Date {
export function parseDateOrString(rawValue: string | undefined, fallback: any): string | Date {
if (typeof rawValue === 'undefined') {
return fallback
}