From 74e0ea9d1fce64e759a7e4002d8c2d1a2e9b6fec Mon Sep 17 00:00:00 2001 From: Sergej Date: Tue, 2 Apr 2024 14:21:12 +0200 Subject: [PATCH] fix build --- .babelrc | 3 ++- package.json | 2 +- src/pages/purchase/index.tsx | 2 +- src/{pages/purchase => utils/sale}/util.test.ts | 0 src/{pages/purchase => utils/sale}/util.ts | 0 5 files changed, 4 insertions(+), 3 deletions(-) rename src/{pages/purchase => utils/sale}/util.test.ts (100%) rename src/{pages/purchase => utils/sale}/util.ts (100%) diff --git a/.babelrc b/.babelrc index c58af5b1..ea0a7281 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,7 @@ { "presets": [ "@babel/preset-env", - "@babel/preset-typescript" + "@babel/preset-typescript", + "next/babel" ] } \ No newline at end of file diff --git a/package.json b/package.json index c7cce397..ef0f1db7 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@emotion/styled": "^11.6.0", "@mui/icons-material": "^5.2.5", "@mui/lab": "5.0.0-alpha.134", - "@mui/material": "^5.2.8", + "@mui/material": "^5.15.14", "@mui/x-date-pickers": "^6.19.5", "@polkadot/api": "^10.8.1", "@polkadot/api-contract": "^10.8.1", diff --git a/src/pages/purchase/index.tsx b/src/pages/purchase/index.tsx index 98003577..4c295dc9 100644 --- a/src/pages/purchase/index.tsx +++ b/src/pages/purchase/index.tsx @@ -29,7 +29,7 @@ import { getSaleEndInBlocks, getSaleProgress, getSaleStartInBlocks, -} from './util'; +} from '../../utils/sale/util'; const Purchase = () => { const theme = useTheme(); diff --git a/src/pages/purchase/util.test.ts b/src/utils/sale/util.test.ts similarity index 100% rename from src/pages/purchase/util.test.ts rename to src/utils/sale/util.test.ts diff --git a/src/pages/purchase/util.ts b/src/utils/sale/util.ts similarity index 100% rename from src/pages/purchase/util.ts rename to src/utils/sale/util.ts