From edaba9beb5837eefd34fb6c06e7ba8bf649b8836 Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:38:47 +0100 Subject: [PATCH] Remove default export --- editor.planx.uk/src/@planx/components/AddressInput/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/Checklist/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/ContactInput/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/DateInput/Public.tsx | 2 +- .../src/@planx/components/DrawBoundary/Public/index.tsx | 2 +- editor.planx.uk/src/@planx/components/FileUpload/Public.tsx | 2 +- .../src/@planx/components/FileUploadAndLabel/Public.tsx | 2 +- .../src/@planx/components/FindProperty/Public/index.tsx | 2 +- editor.planx.uk/src/@planx/components/List/Public/index.tsx | 2 +- .../src/@planx/components/MapAndLabel/Public/index.tsx | 2 +- editor.planx.uk/src/@planx/components/NextSteps/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/Notice/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/NumberInput/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/Page/Public.tsx | 2 +- .../@planx/components/PlanningConstraints/Presentational.tsx | 2 +- .../src/@planx/components/PlanningConstraints/Public.tsx | 2 +- .../src/@planx/components/PropertyInformation/Public.tsx | 2 +- .../src/@planx/components/Question/Public/Question.tsx | 2 +- .../src/@planx/components/Review/Public/Presentational.tsx | 2 +- editor.planx.uk/src/@planx/components/Section/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/TaskList/Public.tsx | 2 +- editor.planx.uk/src/@planx/components/TextInput/Public.tsx | 2 +- .../@planx/components/shared/Preview/CardHeader/CardHeader.tsx | 3 +-- editor.planx.uk/src/pages/Preview/ResumePage.tsx | 2 +- editor.planx.uk/src/pages/Preview/SaveAndReturn.tsx | 2 +- 25 files changed, 25 insertions(+), 26 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/AddressInput/Public.tsx b/editor.planx.uk/src/@planx/components/AddressInput/Public.tsx index f1905ca8a8..94f4bc6204 100644 --- a/editor.planx.uk/src/@planx/components/AddressInput/Public.tsx +++ b/editor.planx.uk/src/@planx/components/AddressInput/Public.tsx @@ -1,5 +1,5 @@ import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import type { PublicProps } from "@planx/components/ui"; import { useFormik } from "formik"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/Checklist/Public.tsx b/editor.planx.uk/src/@planx/components/Checklist/Public.tsx index f022a9ccee..190511ad70 100644 --- a/editor.planx.uk/src/@planx/components/Checklist/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Checklist/Public.tsx @@ -10,7 +10,7 @@ import { } from "@planx/components/Checklist/model"; import ImageButton from "@planx/components/shared/Buttons/ImageButton"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { getIn, useFormik } from "formik"; import React, { useState } from "react"; import { ExpandableList, ExpandableListItem } from "ui/public/ExpandableList"; diff --git a/editor.planx.uk/src/@planx/components/ContactInput/Public.tsx b/editor.planx.uk/src/@planx/components/ContactInput/Public.tsx index 9f6472fff2..8f83d999c7 100644 --- a/editor.planx.uk/src/@planx/components/ContactInput/Public.tsx +++ b/editor.planx.uk/src/@planx/components/ContactInput/Public.tsx @@ -1,5 +1,5 @@ import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import type { PublicProps } from "@planx/components/ui"; import { useFormik } from "formik"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/DateInput/Public.tsx b/editor.planx.uk/src/@planx/components/DateInput/Public.tsx index e4c303124f..63bcef5363 100644 --- a/editor.planx.uk/src/@planx/components/DateInput/Public.tsx +++ b/editor.planx.uk/src/@planx/components/DateInput/Public.tsx @@ -6,7 +6,7 @@ import { paddedDate, } from "@planx/components/DateInput/model"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { PublicProps } from "@planx/components/ui"; import { useFormik } from "formik"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/DrawBoundary/Public/index.tsx b/editor.planx.uk/src/@planx/components/DrawBoundary/Public/index.tsx index b36b753e78..0d09c79d65 100644 --- a/editor.planx.uk/src/@planx/components/DrawBoundary/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/DrawBoundary/Public/index.tsx @@ -5,7 +5,7 @@ import { visuallyHidden } from "@mui/utils"; import { FileUploadSlot } from "@planx/components/FileUpload/model"; import { PASSPORT_REQUESTED_FILES_KEY } from "@planx/components/FileUploadAndLabel/model"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { MapContainer, MapFooter, diff --git a/editor.planx.uk/src/@planx/components/FileUpload/Public.tsx b/editor.planx.uk/src/@planx/components/FileUpload/Public.tsx index e538b3d52b..7e79cab117 100644 --- a/editor.planx.uk/src/@planx/components/FileUpload/Public.tsx +++ b/editor.planx.uk/src/@planx/components/FileUpload/Public.tsx @@ -1,5 +1,5 @@ import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { useStore } from "pages/FlowEditor/lib/store"; import React, { useEffect, useRef, useState } from "react"; import ErrorWrapper from "ui/shared/ErrorWrapper"; diff --git a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx index bf14c17bc9..50d7f4bb48 100644 --- a/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx +++ b/editor.planx.uk/src/@planx/components/FileUploadAndLabel/Public.tsx @@ -22,7 +22,7 @@ import ReactMarkdownOrHtml from "ui/shared/ReactMarkdownOrHtml"; import { FileUploadSlot } from "../FileUpload/model"; import { MoreInformation } from "../shared"; import Card from "../shared/Preview/Card"; -import CardHeader from "../shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "../shared/Preview/CardHeader/CardHeader"; import { Image } from "../shared/Preview/CardHeader/styled"; import MoreInfo from "../shared/Preview/MoreInfo"; import MoreInfoSection from "../shared/Preview/MoreInfoSection"; diff --git a/editor.planx.uk/src/@planx/components/FindProperty/Public/index.tsx b/editor.planx.uk/src/@planx/components/FindProperty/Public/index.tsx index 3bba5d0581..3c2f4a14c1 100644 --- a/editor.planx.uk/src/@planx/components/FindProperty/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/FindProperty/Public/index.tsx @@ -4,7 +4,7 @@ import Link from "@mui/material/Link"; import { styled } from "@mui/material/styles"; import Typography from "@mui/material/Typography"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { squareMetresToHectares } from "@planx/components/shared/utils"; import { PublicProps } from "@planx/components/ui"; import area from "@turf/area"; diff --git a/editor.planx.uk/src/@planx/components/List/Public/index.tsx b/editor.planx.uk/src/@planx/components/List/Public/index.tsx index 9246ea6f9f..861e7268da 100644 --- a/editor.planx.uk/src/@planx/components/List/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/List/Public/index.tsx @@ -16,7 +16,7 @@ import FullWidthWrapper from "ui/public/FullWidthWrapper"; import ErrorWrapper from "ui/shared/ErrorWrapper"; import Card from "../../shared/Preview/Card"; -import CardHeader from "../../shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "../../shared/Preview/CardHeader/CardHeader"; import type { List } from "../model"; import { formatSchemaDisplayValue } from "../utils"; import { ListProvider, useListContext } from "./Context"; diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx index 81676d8a77..f3bdaf8741 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx @@ -19,7 +19,7 @@ import FullWidthWrapper from "ui/public/FullWidthWrapper"; import ErrorWrapper from "ui/shared/ErrorWrapper"; import Card from "../../shared/Preview/Card"; -import CardHeader from "../../shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "../../shared/Preview/CardHeader/CardHeader"; import { MapContainer } from "../../shared/Preview/MapContainer"; import { PublicProps } from "../../ui"; import type { MapAndLabel } from "./../model"; diff --git a/editor.planx.uk/src/@planx/components/NextSteps/Public.tsx b/editor.planx.uk/src/@planx/components/NextSteps/Public.tsx index bc1a552f05..208cd4dc0f 100644 --- a/editor.planx.uk/src/@planx/components/NextSteps/Public.tsx +++ b/editor.planx.uk/src/@planx/components/NextSteps/Public.tsx @@ -3,7 +3,7 @@ import React from "react"; import NextStepsList from "ui/public/NextStepsList"; import Card from "../shared/Preview/Card"; -import CardHeader from "../shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "../shared/Preview/CardHeader/CardHeader"; import { NextSteps } from "./model"; export type Props = PublicProps; diff --git a/editor.planx.uk/src/@planx/components/Notice/Public.tsx b/editor.planx.uk/src/@planx/components/Notice/Public.tsx index 8bb730dc67..caf19d193e 100644 --- a/editor.planx.uk/src/@planx/components/Notice/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Notice/Public.tsx @@ -8,7 +8,7 @@ import type { Notice } from "@planx/components/Notice/model"; import Card, { contentFlowSpacing, } from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { PublicProps } from "@planx/components/ui"; import { useAnalyticsTracking } from "pages/FlowEditor/lib/analytics/provider"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/NumberInput/Public.tsx b/editor.planx.uk/src/@planx/components/NumberInput/Public.tsx index 6d84d025bb..42e89bd895 100644 --- a/editor.planx.uk/src/@planx/components/NumberInput/Public.tsx +++ b/editor.planx.uk/src/@planx/components/NumberInput/Public.tsx @@ -1,5 +1,5 @@ import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { PublicProps } from "@planx/components/ui"; import { useFormik } from "formik"; import isNil from "lodash/isNil"; diff --git a/editor.planx.uk/src/@planx/components/Page/Public.tsx b/editor.planx.uk/src/@planx/components/Page/Public.tsx index 3e8d87905e..615fbb4108 100644 --- a/editor.planx.uk/src/@planx/components/Page/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Page/Public.tsx @@ -4,7 +4,7 @@ import React from "react"; import { flatten } from "../List/utils"; import Card from "../shared/Preview/Card"; -import CardHeader from "../shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "../shared/Preview/CardHeader/CardHeader"; import { useSchema } from "../shared/Schema/hook"; import { SchemaUserData } from "../shared/Schema/model"; import { SchemaFields } from "../shared/Schema/SchemaFields"; diff --git a/editor.planx.uk/src/@planx/components/PlanningConstraints/Presentational.tsx b/editor.planx.uk/src/@planx/components/PlanningConstraints/Presentational.tsx index 916e3d587c..66f56fb8ad 100644 --- a/editor.planx.uk/src/@planx/components/PlanningConstraints/Presentational.tsx +++ b/editor.planx.uk/src/@planx/components/PlanningConstraints/Presentational.tsx @@ -2,7 +2,7 @@ import ErrorOutline from "@mui/icons-material/ErrorOutline"; import Typography from "@mui/material/Typography"; import type { Constraint, GISResponse } from "@opensystemslab/planx-core/types"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import capitalize from "lodash/capitalize"; import { HandleSubmit } from "pages/Preview/Node"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx b/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx index cd04396ed1..647750bfc5 100644 --- a/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx +++ b/editor.planx.uk/src/@planx/components/PlanningConstraints/Public.tsx @@ -3,7 +3,7 @@ import type { GISResponse, } from "@opensystemslab/planx-core/types"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import type { PublicProps } from "@planx/components/ui"; import DelayedLoadingIndicator from "components/DelayedLoadingIndicator"; import { GraphError } from "components/Error/GraphError"; diff --git a/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx b/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx index 0afc81329c..cd9402734a 100644 --- a/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx +++ b/editor.planx.uk/src/@planx/components/PropertyInformation/Public.tsx @@ -3,7 +3,7 @@ import Box from "@mui/material/Box"; import Link from "@mui/material/Link"; import { visuallyHidden } from "@mui/utils"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { SummaryListTable } from "@planx/components/shared/Preview/SummaryList"; import type { PublicProps } from "@planx/components/ui"; import { GraphError } from "components/Error/GraphError"; diff --git a/editor.planx.uk/src/@planx/components/Question/Public/Question.tsx b/editor.planx.uk/src/@planx/components/Question/Public/Question.tsx index 47aa422d2d..db52a79ab2 100644 --- a/editor.planx.uk/src/@planx/components/Question/Public/Question.tsx +++ b/editor.planx.uk/src/@planx/components/Question/Public/Question.tsx @@ -4,7 +4,7 @@ import Grid from "@mui/material/Grid"; import RadioGroup from "@mui/material/RadioGroup"; import { visuallyHidden } from "@mui/utils"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import BasicRadio from "@planx/components/shared/Radio/BasicRadio"; import DescriptionRadio from "@planx/components/shared/Radio/DescriptionRadio/DescriptionRadio"; import ImageRadio from "@planx/components/shared/Radio/ImageRadio"; diff --git a/editor.planx.uk/src/@planx/components/Review/Public/Presentational.tsx b/editor.planx.uk/src/@planx/components/Review/Public/Presentational.tsx index 3242757b72..636bb8bc91 100644 --- a/editor.planx.uk/src/@planx/components/Review/Public/Presentational.tsx +++ b/editor.planx.uk/src/@planx/components/Review/Public/Presentational.tsx @@ -1,6 +1,6 @@ import { NodeId } from "@opensystemslab/planx-core/types"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import SummaryListsBySections from "@planx/components/shared/Preview/SummaryList"; import { PrintButton } from "components/PrintButton"; import { Store } from "pages/FlowEditor/lib/store"; diff --git a/editor.planx.uk/src/@planx/components/Section/Public.tsx b/editor.planx.uk/src/@planx/components/Section/Public.tsx index bfe339df56..70e373895a 100644 --- a/editor.planx.uk/src/@planx/components/Section/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Section/Public.tsx @@ -12,7 +12,7 @@ import { SectionNode, SectionStatus } from "types"; import ReactMarkdownOrHtml from "ui/shared/ReactMarkdownOrHtml"; import Card from "../shared/Preview/Card"; -import CardHeader from "../shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "../shared/Preview/CardHeader/CardHeader"; import type { Section } from "./model"; import { computeSectionStatuses } from "./model"; diff --git a/editor.planx.uk/src/@planx/components/TaskList/Public.tsx b/editor.planx.uk/src/@planx/components/TaskList/Public.tsx index 37c7ef7f94..b348e7d72f 100644 --- a/editor.planx.uk/src/@planx/components/TaskList/Public.tsx +++ b/editor.planx.uk/src/@planx/components/TaskList/Public.tsx @@ -1,5 +1,5 @@ import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import type { TaskList } from "@planx/components/TaskList/model"; import { PublicProps } from "@planx/components/ui"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/TextInput/Public.tsx b/editor.planx.uk/src/@planx/components/TextInput/Public.tsx index e446f07410..161172f31e 100644 --- a/editor.planx.uk/src/@planx/components/TextInput/Public.tsx +++ b/editor.planx.uk/src/@planx/components/TextInput/Public.tsx @@ -1,5 +1,5 @@ import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { PublicProps } from "@planx/components/ui"; import { useFormik } from "formik"; import React from "react"; diff --git a/editor.planx.uk/src/@planx/components/shared/Preview/CardHeader/CardHeader.tsx b/editor.planx.uk/src/@planx/components/shared/Preview/CardHeader/CardHeader.tsx index 8f142ea548..6ea8461174 100644 --- a/editor.planx.uk/src/@planx/components/shared/Preview/CardHeader/CardHeader.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Preview/CardHeader/CardHeader.tsx @@ -17,7 +17,7 @@ import { } from "./styled"; import { ICardHeader } from "./types"; -const CardHeader: React.FC = ({ +export const CardHeader: React.FC = ({ title, description, info, @@ -108,4 +108,3 @@ const CardHeader: React.FC = ({ ); }; -export default CardHeader; diff --git a/editor.planx.uk/src/pages/Preview/ResumePage.tsx b/editor.planx.uk/src/pages/Preview/ResumePage.tsx index b0c9030046..1ff744e660 100644 --- a/editor.planx.uk/src/pages/Preview/ResumePage.tsx +++ b/editor.planx.uk/src/pages/Preview/ResumePage.tsx @@ -3,7 +3,7 @@ import Link from "@mui/material/Link"; import Typography from "@mui/material/Typography"; import { PaymentRequest } from "@opensystemslab/planx-core/types"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import axios from "axios"; import DelayedLoadingIndicator from "components/DelayedLoadingIndicator"; import { useFormik } from "formik"; diff --git a/editor.planx.uk/src/pages/Preview/SaveAndReturn.tsx b/editor.planx.uk/src/pages/Preview/SaveAndReturn.tsx index b9b0180840..0716b76a7f 100644 --- a/editor.planx.uk/src/pages/Preview/SaveAndReturn.tsx +++ b/editor.planx.uk/src/pages/Preview/SaveAndReturn.tsx @@ -1,6 +1,6 @@ import Box from "@mui/material/Box"; import Card from "@planx/components/shared/Preview/Card"; -import CardHeader from "@planx/components/shared/Preview/CardHeader/CardHeader"; +import { CardHeader } from "@planx/components/shared/Preview/CardHeader/CardHeader"; import { useFormik } from "formik"; import { useStore } from "pages/FlowEditor/lib/store"; import React from "react";