refactor: adjust base components export

This commit is contained in:
GyDi
2022-11-20 22:03:55 +08:00
parent 892b919cf3
commit 8bb4803ff9
34 changed files with 44 additions and 66 deletions

View File

@@ -1,6 +1,6 @@
import React from "react";
import { Typography } from "@mui/material";
import BaseErrorBoundary from "./base-error-boundary";
import { BaseErrorBoundary } from "./base-error-boundary";
interface Props {
title?: React.ReactNode; // the page title
@@ -8,7 +8,7 @@ interface Props {
contentStyle?: React.CSSProperties;
}
const BasePage: React.FC<Props> = (props) => {
export const BasePage: React.FC<Props> = (props) => {
const { title, header, contentStyle, children } = props;
return (
@@ -31,5 +31,3 @@ const BasePage: React.FC<Props> = (props) => {
</BaseErrorBoundary>
);
};
export default BasePage;