Skip to content

Commit

Permalink
Move components out of grouped and nongrouped
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Jan 3, 2025
1 parent 6ba61dc commit 5351a76
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import FullWidthWrapper from "ui/public/FullWidthWrapper";
import ErrorWrapper from "ui/shared/ErrorWrapper";
import { object } from "yup";

import { PublicChecklistProps } from "../../../types";
import { toggleNonExclusiveCheckbox } from "../../helpers";
import { useExclusiveOption } from "../../hooks/useExclusiveOption";
import { useSortedOptions } from "../../hooks/useSortedOptions";
import { ExclusiveChecklistItem } from "../ExclusiveChecklistItem";
import { ChecklistLayout } from "../VisibleChecklist";
import { PublicChecklistProps } from "../../types";
import { toggleNonExclusiveCheckbox } from "../helpers";
import { useExclusiveOption } from "../hooks/useExclusiveOption";
import { useSortedOptions } from "../hooks/useSortedOptions";
import { ChecklistItems } from "./ChecklistItems";
import { ExclusiveChecklistItem } from "./ExclusiveChecklistItem";
import { ChecklistLayout } from "./VisibleChecklist";

export const Checklist: React.FC<PublicChecklistProps> = (props) => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";
import FormWrapper from "ui/public/FormWrapper";
import ChecklistItem from "ui/shared/ChecklistItem/ChecklistItem";

import { ChecklistLayout } from "../VisibleChecklist";
import { ChecklistLayout } from "./VisibleChecklist";

interface Props {
nonExclusiveOptions: Option[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { ExpandableListItem } from "ui/public/ExpandableList";
import FormWrapper from "ui/public/FormWrapper";
import ChecklistItem from "ui/shared/ChecklistItem/ChecklistItem";

import { Option } from "../../../../shared";
import { toggleNonExclusiveCheckbox } from "../../helpers";
import { useExclusiveOptionInGroupedChecklists } from "../../hooks/useExclusiveOption";
import { Option } from "../../../shared";
import { toggleNonExclusiveCheckbox } from "../helpers";
import { useExclusiveOptionInGroupedChecklists } from "../hooks/useExclusiveOption";

interface Props {
group: Group<Option>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import FullWidthWrapper from "ui/public/FullWidthWrapper";
import ErrorWrapper from "ui/shared/ErrorWrapper";
import { object } from "yup";

import { PublicChecklistProps } from "../../../types";
import { ChecklistLayout } from "../VisibleChecklist";
import { PublicChecklistProps } from "../../types";
import { GroupedChecklistOptions } from "./GroupedChecklistOptions";
import { ChecklistLayout } from "./VisibleChecklist";

export const GroupedChecklist: React.FC<PublicChecklistProps> = (props) => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import React from "react";
import { ExpandableList } from "ui/public/ExpandableList";
import FormWrapper from "ui/public/FormWrapper";

import { Option } from "../../../../shared";
import { useExpandedGroups } from "../../hooks/useExpandedGroups";
import { Option } from "../../../shared";
import { useExpandedGroups } from "../hooks/useExpandedGroups";
import { ChecklistOptionGroup } from "./ChecklistOptionGroup";

interface GroupedChecklistOptionsProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from "react";

import { PublicChecklistProps } from "../../types";
import { GroupedChecklist } from "./grouped/GroupedChecklist";
import { Checklist } from "./nonGrouped/Checklist";
import { Checklist } from "./Checklist";
import { GroupedChecklist } from "./GroupedChecklist";

export enum ChecklistLayout {
Basic,
Expand Down

0 comments on commit 5351a76

Please sign in to comment.