mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-13 22:37:14 +10:00
fix(types/react): downgrade to <18
This commit is contained in:
@@ -22,7 +22,7 @@ export const dateFormatOptions: string[] = [
|
||||
export const getRelativeTime = (timestamp: dayjs.ConfigType): string => dayjs(timestamp).toNow(true);
|
||||
|
||||
export const formatDateString = (date: string | DateRange, formatStr: string): string | null => {
|
||||
const presentString = i18n?.t('common.date.present') ?? '';
|
||||
const presentString = i18n?.t<string>('common.date.present') ?? '';
|
||||
|
||||
if (isEmpty(date)) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user