Skip to content

Commit

Permalink
Merge pull request #650 from gadget-inc/only-one-autoform-export
Browse files Browse the repository at this point in the history
Don't re-export PolarisAutoForm as PolarisAutoForm
  • Loading branch information
airhorns authored Sep 24, 2024
2 parents 57663d6 + 4fd9d0d commit 394e801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/auto/polaris/PolarisAutoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { PolarisAutoInput } from "./inputs/PolarisAutoInput.js";
import { PolarisAutoSubmit } from "./submit/PolarisAutoSubmit.js";
import { PolarisSubmitErrorBanner, PolarisSubmitSuccessfulBanner } from "./submit/PolarisSubmitResultBanner.js";

export const PolarisFormSkeleton = () => (
export const PolarisAutoFormSkeleton = () => (
<>
<SkeletonDisplayText size="medium" />
<SkeletonBodyText />
Expand Down Expand Up @@ -92,7 +92,7 @@ const PolarisAutoFormComponent = <
return (
<Form {...rest} onSubmit={submit}>
<FormLayout>
<PolarisFormSkeleton />
<PolarisAutoFormSkeleton />
</FormLayout>
</Form>
);
Expand Down
3 changes: 1 addition & 2 deletions packages/react/src/auto/polaris/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export { PolarisAutoButton as AutoButton } from "./PolarisAutoButton.js";
export * from "./PolarisAutoForm.js";
export { PolarisAutoForm as AutoForm } from "./PolarisAutoForm.js";
export { PolarisAutoForm as AutoForm, PolarisAutoFormSkeleton as AutoFormSkeleton } from "./PolarisAutoForm.js";
export { PolarisAutoTable as AutoTable } from "./PolarisAutoTable.js";
export { PolarisAutoBooleanInput as AutoBooleanInput } from "./inputs/PolarisAutoBooleanInput.js";
export { PolarisAutoDateTimePicker as AutoDateTimePicker } from "./inputs/PolarisAutoDateTimePicker.js";
Expand Down

0 comments on commit 394e801

Please sign in to comment.