@codecademy/gamut
73.6.173.6.2-alpha.3e37cd.0
dist/GridForm/GridForm.d.ts~
dist/GridForm/GridForm.d.tsModified+2−3
Index: package/dist/GridForm/GridForm.d.ts
===================================================================
--- package/dist/GridForm/GridForm.d.ts
+++ package/dist/GridForm/GridForm.d.ts
@@ -1,11 +1,10 @@
import * as React from 'react';
import { Mode, SubmitHandler } from 'react-hook-form';
-import { ButtonProps } from '../Button';
import { FormContextProps } from '../ConnectedForm';
import { FormValues } from '../Form/types';
import { LayoutGridProps } from '../Layout';
-import { GridFormSubmitProps } from './GridFormButtons';
+import { CancelButtonProps, GridFormSubmitProps } from './GridFormButtons';
import { GridFormFieldsProps, GridFormRequiredTextProps } from './types';
export * from './types';
export type GridFormProps<Values extends {}> = FormContextProps & GridFormRequiredTextProps & {
children?: React.ReactNode;
@@ -20,9 +19,9 @@
fields?: GridFormFieldsProps[];
/**
* Renders a cancel button with the provided child text and onClick function.
*/
- cancel?: ButtonProps;
+ cancel?: CancelButtonProps['cancel'];
/**
* If your form has a single visible field. You should only have to set this if you have a single field in addition to hidden custom rendered inputs, otherwise it should happen automatically.
*/
hasSoloField?: boolean;