Skip to content

Commit

Permalink
refactor(webui): simplify form components
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Apr 18, 2024
1 parent e59d21c commit 983f1c2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions webui/src/app/(atlas)/[entry]/folders/[path].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { useMemo } from 'react';
import type { ModuleGraphResponse } from '~/app/--/entries/[entry]/modules/graph+api';
import { BreadcrumbLinks } from '~/components/BreadcrumbLinks';
import { BundleGraph } from '~/components/BundleGraph';
import { BundleSelectForm } from '~/components/BundleSelectForm';
import { ModuleFiltersForm } from '~/components/ModuleFilterForm';
import { StateInfo } from '~/components/StateInfo';
import { EntrySelectForm } from '~/components/forms/EntrySelect';
import { ModuleFiltersForm } from '~/components/forms/ModuleFilter';
import { EntryDeltaToast, useEntry } from '~/providers/entries';
import { Layout, LayoutHeader, LayoutNavigation, LayoutTitle } from '~/ui/Layout';
import { Tag } from '~/ui/Tag';
Expand All @@ -27,7 +27,7 @@ export default function FolderPage() {
return (
<Layout variant="viewport">
<LayoutNavigation>
<EntrySelectForm />
<BundleSelectForm />
</LayoutNavigation>
<LayoutHeader>
<LayoutTitle>
Expand Down
6 changes: 3 additions & 3 deletions webui/src/app/(atlas)/[entry]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { keepPreviousData, useQuery } from '@tanstack/react-query';

import type { ModuleGraphResponse } from '~/app/--/entries/[entry]/modules/graph+api';
import { BundleGraph } from '~/components/BundleGraph';
import { BundleSelectForm } from '~/components/BundleSelectForm';
import { ModuleFiltersForm } from '~/components/ModuleFilterForm';
import { StateInfo } from '~/components/StateInfo';
import { EntrySelectForm } from '~/components/forms/EntrySelect';
import { ModuleFiltersForm } from '~/components/forms/ModuleFilter';
import { EntryDeltaToast, useEntry } from '~/providers/entries';
import { Layout, LayoutHeader, LayoutNavigation, LayoutTitle } from '~/ui/Layout';
import { Spinner } from '~/ui/Spinner';
Expand All @@ -22,7 +22,7 @@ export default function BundlePage() {
return (
<Layout variant="viewport">
<LayoutNavigation>
<EntrySelectForm />
<BundleSelectForm />
</LayoutNavigation>
<LayoutHeader>
<LayoutTitle>
Expand Down
4 changes: 2 additions & 2 deletions webui/src/app/(atlas)/[entry]/modules/[path].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { Link, useLocalSearchParams } from 'expo-router';
import { useMemo } from 'react';

import { BreadcrumbLinks } from '~/components/BreadcrumbLinks';
import { BundleSelectForm } from '~/components/BundleSelectForm';
import { ModuleCode } from '~/components/ModuleCode';
import { StateInfo } from '~/components/StateInfo';
import { EntrySelectForm } from '~/components/forms/EntrySelect';
import { EntryDeltaToast, useEntry } from '~/providers/entries';
import { Layout, LayoutHeader, LayoutNavigation, LayoutTitle } from '~/ui/Layout';
import { Skeleton } from '~/ui/Skeleton';
Expand All @@ -23,7 +23,7 @@ export default function ModulePage() {
return (
<Layout>
<LayoutNavigation>
<EntrySelectForm />
<BundleSelectForm />
</LayoutNavigation>
<LayoutHeader>
<LayoutTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Button } from '~/ui/Button';
import { Tag } from '~/ui/Tag';
import { relativeEntryPath } from '~/utils/entry';

export function EntrySelectForm() {
export function BundleSelectForm() {
const router = useRouter();
const { entry, entries } = useEntry();

Expand Down
File renamed without changes.

0 comments on commit 983f1c2

Please sign in to comment.