Skip to content

Commit

Permalink
Update components to import exported types seperately from exported f…
Browse files Browse the repository at this point in the history
…unctions
  • Loading branch information
courtneymyers committed Dec 7, 2023
1 parent 054aee0 commit fdc30cb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
3 changes: 2 additions & 1 deletion app/client/src/components/errorBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, ErrorInfo, ReactNode } from "react";
import type { ReactNode } from "react";
import { Component, ErrorInfo } from "react";
// ---
import { messages } from "@/config";
import { Message } from "@/components/message";
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/routes/crf2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import icons from "uswds/img/sprite.svg";
// ---
import { serverUrl, messages } from "@/config";
import {
FormioCRF2022Submission,
getData,
postData,
useContentData,
Expand All @@ -25,6 +24,7 @@ import { Message } from "@/components/message";
import { MarkdownContent } from "@/components/markdownContent";
import { useNotificationsActions } from "@/contexts/notifications";
import { useRebateYearState } from "@/contexts/rebateYear";
import type { FormioCRF2022Submission } from "@/utilities";

type ServerResponse =
| {
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/routes/frf2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import icons from "uswds/img/sprite.svg";
// ---
import { serverUrl, messages } from "@/config";
import {
FormioFRF2022Submission,
getData,
postData,
useContentData,
Expand All @@ -26,6 +25,7 @@ import { MarkdownContent } from "@/components/markdownContent";
import { useDialogActions } from "@/contexts/dialog";
import { useNotificationsActions } from "@/contexts/notifications";
import { useRebateYearState } from "@/contexts/rebateYear";
import type { FormioFRF2022Submission } from "@/utilities";

type ServerResponse =
| {
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/routes/frf2023.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import icons from "uswds/img/sprite.svg";
// ---
import { serverUrl, messages } from "@/config";
import {
FormioFRF2023Submission,
getData,
postData,
useContentData,
Expand All @@ -26,6 +25,7 @@ import { MarkdownContent } from "@/components/markdownContent";
import { useDialogActions } from "@/contexts/dialog";
import { useNotificationsActions } from "@/contexts/notifications";
import { useRebateYearState } from "@/contexts/rebateYear";
import type { FormioFRF2023Submission } from "@/utilities";

type ServerResponse =
| {
Expand Down
8 changes: 5 additions & 3 deletions app/client/src/routes/frfNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import icons from "uswds/img/sprite.svg";
// ---
import { serverUrl, messages } from "@/config";
import {
BapSamEntity,
FormioFRF2022Submission,
FormioFRF2023Submission,
postData,
useContentData,
useConfigData,
Expand All @@ -20,6 +17,11 @@ import { Message } from "@/components/message";
import { MarkdownContent } from "@/components/markdownContent";
import { TextWithTooltip } from "@/components/tooltip";
import { useRebateYearState } from "@/contexts/rebateYear";
import type {
BapSamEntity,
FormioFRF2022Submission,
FormioFRF2023Submission,
} from "@/utilities";

/**
* Creates the initial FRF submission data for a given rebate year
Expand Down
14 changes: 8 additions & 6 deletions app/client/src/routes/helpdesk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ import {
bapCRFStatusMap,
} from "@/config";
import {
FormioFRF2022Submission,
FormioPRF2022Submission,
FormioCRF2022Submission,
FormioFRF2023Submission,
BapSubmission,
getData,
postData,
useContentData,
Expand All @@ -30,10 +25,17 @@ import { Message } from "@/components/message";
import { MarkdownContent } from "@/components/markdownContent";
import { TextWithTooltip } from "@/components/tooltip";
import {
RebateYear,
useRebateYearState,
useRebateYearActions,
} from "@/contexts/rebateYear";
import type { RebateYear } from "@/contexts/rebateYear";
import type {
FormioFRF2022Submission,
FormioPRF2022Submission,
FormioCRF2022Submission,
FormioFRF2023Submission,
BapSubmission,
} from "@/utilities";

type FormType = "frf" | "prf" | "crf";

Expand Down
2 changes: 1 addition & 1 deletion app/client/src/routes/prf2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import icons from "uswds/img/sprite.svg";
// ---
import { serverUrl, messages } from "@/config";
import {
FormioPRF2022Submission,
getData,
postData,
useContentData,
Expand All @@ -25,6 +24,7 @@ import { Message } from "@/components/message";
import { MarkdownContent } from "@/components/markdownContent";
import { useNotificationsActions } from "@/contexts/notifications";
import { useRebateYearState } from "@/contexts/rebateYear";
import type { FormioPRF2022Submission } from "@/utilities";

type ServerResponse =
| {
Expand Down

0 comments on commit fdc30cb

Please sign in to comment.