From 32e9294725cdf44777d4f8c54cd6cbe469d5eabd Mon Sep 17 00:00:00 2001 From: SD Date: Wed, 27 Mar 2024 19:16:03 +0400 Subject: [PATCH] fix: fix dayjs --- src/components/Account/SessionsTabs.tsx | 2 +- tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Account/SessionsTabs.tsx b/src/components/Account/SessionsTabs.tsx index af22a1f..24ccd7f 100644 --- a/src/components/Account/SessionsTabs.tsx +++ b/src/components/Account/SessionsTabs.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import styled from 'styled-components'; -import * as dayjs from 'dayjs'; +import dayjs from 'dayjs'; import 'dayjs/locale/ru'; import 'dayjs/locale/en'; import 'dayjs/locale/de'; diff --git a/tsconfig.json b/tsconfig.json index e3932e2..82a5824 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve",