Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/routes/development/library/contexts/form.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { createFormContext } from 'components/core/form/createFormContext';
import {
ACTIONABLE_LIBRARY_STATE,
type ActionableLibraryState
} from 'components/routes/development/library/sections/Actionable';
import type { DateTimeLibraryState } from 'components/routes/development/library/sections/DateTime';
import { DATETIME_LIBRARY_STATE } from 'components/routes/development/library/sections/DateTime';
import { INPUTS_LIBRARY_STATE, type InputsLibraryState } from 'components/routes/development/library/sections/Inputs';
Expand All @@ -9,7 +13,8 @@ import {
type ListInputsLibraryState
} from 'components/routes/development/library/sections/ListInputs';

type LibraryComponents = DateTimeLibraryState &
type LibraryComponents = ActionableLibraryState &
DateTimeLibraryState &
InputsLibraryState &
LayoutLibraryState &
ListInputsLibraryState &
Expand All @@ -27,6 +32,7 @@ const LIBRARY_FORM_STORE: LibraryFormStore = Object.freeze({
tab: null
},
components: {
...ACTIONABLE_LIBRARY_STATE,
...DATETIME_LIBRARY_STATE,
...INPUTS_LIBRARY_STATE,
...LAYOUT_LIBRARY_STATE,
Expand Down
3 changes: 3 additions & 0 deletions src/components/routes/development/library/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { TableOfContentProvider, useTableOfContent } from 'components/core/Table
import useALContext from 'components/hooks/useALContext';
import type { LibraryFormStore } from 'components/routes/development/library/contexts/form';
import { FormProvider, useForm } from 'components/routes/development/library/contexts/form';
import { ActionableSection } from 'components/routes/development/library/sections/Actionable';
import { DateTimeSection } from 'components/routes/development/library/sections/DateTime';
import { InputsSection } from 'components/routes/development/library/sections/Inputs';
import { LayoutSection } from 'components/routes/development/library/sections/Layout';
Expand Down Expand Up @@ -102,6 +103,8 @@ const LibraryContent = () => {
>
{(() => {
switch (tab) {
case 'actionable':
return <ActionableSection />;
case 'datetime':
return <DateTimeSection />;
case 'inputs':
Expand Down
Loading