Skip to content

Commit

Permalink
fieldsets are now inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Feb 12, 2024
1 parent 261a436 commit f630580
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion data_wizard/static/app/js/wizard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data_wizard/static/app/js/wizard.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data_wizard/static/srchash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ec52575af98c3e7839d8a89fd2a1bc65b9d8e826dcb5f3c0b820541b941d09ed
5b66ce734cfdb43d83e3121776ac780cbf995b8c7ccc0b38a72791e76e7b55f8
3 changes: 1 addition & 2 deletions packages/wizard/src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Center from './Center';
import CloseWizard from './CloseWizard';
import ContinueForm from './ContinueForm';
import MappingFieldsetArray from './MappingFieldsetArray';
import Progress from './Progress';

export { Center, CloseWizard, ContinueForm, MappingFieldsetArray, Progress };
export { Center, CloseWizard, ContinueForm, Progress };
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react';
import { useComponents } from '@wq/react';
import { useComponents, useInputComponents } from '@wq/react';
import PropTypes from 'prop-types';

export default function MappingFieldsetArray({ label, subform, children }) {
const { Fieldset, Table, TableHead, TableBody, TableRow, TableTitle } =
useComponents();
const { Table, TableHead, TableBody, TableRow, TableTitle } =
useComponents(),
{ Fieldset } = useInputComponents();
return (
<Fieldset label={label}>
<Table>
Expand Down
3 changes: 2 additions & 1 deletion packages/wizard/src/inputs/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MappingFieldsetArray from './MappingFieldsetArray';
import MappingSelect from './MappingSelect';
import ReadOnly from './ReadOnly';

export { MappingSelect, ReadOnly };
export { MappingFieldsetArray, MappingSelect, ReadOnly };
6 changes: 3 additions & 3 deletions packages/wizard/src/views/RunColumns.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useMemo } from 'react';
import { useComponents } from '@wq/react';
import { useComponents, useInputComponents } from '@wq/react';
import { useRunInfo } from '../hooks';

export default function RunColumns() {
Expand All @@ -16,8 +16,8 @@ export default function RunColumns() {
TableRow,
TableCell,
ContinueForm,
MappingFieldsetArray,
} = useComponents();
} = useComponents(),
{ MappingFieldsetArray } = useInputComponents();

if (!unknown_count) {
return (
Expand Down
7 changes: 3 additions & 4 deletions packages/wizard/src/views/RunIds.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useMemo } from 'react';
import { useComponents } from '@wq/react';
import { useComponents, useInputComponents } from '@wq/react';
import { useRunInfo } from '../hooks';

export default function RunIds() {
Expand All @@ -16,9 +16,8 @@ export default function RunIds() {
TableRow,
TableCell,
ContinueForm,
MappingFieldsetArray,
} = useComponents();

} = useComponents(),
{ MappingFieldsetArray } = useInputComponents();
if (!unknown_count) {
return (
<ScrollView>
Expand Down

0 comments on commit f630580

Please sign in to comment.