@aliretail/react-materials-components
Version:
32 lines (31 loc) • 1.03 kB
TypeScript
import * as React from 'react';
interface ErrorModalDisplayProps {
className?: string;
style?: React.CSSProperties;
type: string;
errors: any[];
onJump?: (elementId: string, element: HTMLElement) => void;
id?: string;
}
interface ErrorModalDisplayState {
isCollapsed: boolean;
}
export declare class ErrorModalDisplay extends React.Component<ErrorModalDisplayProps, ErrorModalDisplayState> {
errorModalRef: React.RefObject<HTMLElement>;
constructor(props: any);
toggleCollapse: () => void;
dumpToRef: (elementId: any) => void;
componentDidUpdate(prevProps: any): void;
hideModal: () => void;
render(): JSX.Element;
}
export interface ErrorModalProps {
className?: string;
style?: React.CSSProperties;
onJump?: (elementId: string, element: HTMLElement) => void;
}
export declare const errorReducer: (state: any, action: any, form: any) => any;
export declare class ErrorModal extends React.Component<ErrorModalProps> {
render(): JSX.Element;
}
export {};