Skip to content

Commit

Permalink
build: 💚 fix build related with wrong types and build options
Browse files Browse the repository at this point in the history
  • Loading branch information
michyaraque committed Feb 5, 2024
1 parent d28e4fb commit 7f6f872
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev",
"ssr": "next build",
"start": "next start",
"build": "next build && next export",
"build": "next build",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
Expand Down
2 changes: 1 addition & 1 deletion src/common/helper/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const calculateDocumentSize = async ({
return (decoded.length / 1000000).toFixed(2) + " MB";
} catch (error) {
console.error("Error calculating document size:", error);
return null;
return "0 mb";
}
};

Expand Down
3 changes: 0 additions & 3 deletions src/common/layout/BaseLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ import { ReactNode } from "react";

import { Container } from "@chakra-ui/react";

import Navbar from "../components/Navbar";

type BaseLayoutProps = { children: ReactNode };

const BaseLayout = ({ children }: BaseLayoutProps) => {
return (
<>
<Navbar />
<Container maxW="1440px" size="xl" p={{ base: 0, md: 0, sm: 0 }}>
{children}
</Container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function useStatInput(selector: SelectorProp) {

const onInputChange = (event) => {
setActualStat(event);
setStats({ [selector]: event });
setStats({ [selector]: event } as any);
};

useEffect(() => {
Expand Down

0 comments on commit 7f6f872

Please sign in to comment.