diff --git a/components/logistic/Logistic.tsx b/components/logistic/Logistic.tsx index e6a8ae3..1fc18ef 100644 --- a/components/logistic/Logistic.tsx +++ b/components/logistic/Logistic.tsx @@ -16,7 +16,7 @@ const initialValue = () => ({ recieved: [] }) -export const Logistic = (): JSX.Element => { +export default function Logistic() { const router = useRouter() const [dateRange, setDateRange] = useState() diff --git a/components/summary/summary.tsx b/components/summary/summary.tsx index e4a85c3..4b29d36 100644 --- a/components/summary/summary.tsx +++ b/components/summary/summary.tsx @@ -13,7 +13,7 @@ import { Table } from "antd"; import { Summary, SummaryByLocation, SummaryByType, summaryColumns, SummaryData, SummaryDataType } from "./summary-columns"; -export const LocationSummary = (): JSX.Element => { +export default function LocationSummary() { const [dateRange, setDateRange] = useState() const { data } = useQuery(GET_SHIPPINGS) diff --git a/pages/index.tsx b/pages/index.tsx index 98ac7bc..d93e8ab 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -10,8 +10,8 @@ import { } from '@ant-design/icons'; import ShippingTable from "@/components/shippingTable/ShippingTable" import { useLogin, useUser } from "@/components/hooks/useUser" -import { Logistic } from "@/components/logistic/logistic" -import { LocationSummary } from "@/components/summary/summary" +import Logistic from "@/components/logistic/logistic" +import LocationSummary from "@/components/summary/summary" const lahtaUserId = '4f5cf275-0964-4f8a-a5ad-f0140b429182'