Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 authored and actions-user committed Jul 5, 2020
1 parent 1ce9a93 commit 1f27a77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/m-table-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ MTableToolbar.defaultProps = {
showColumnsAriaLabel: "Show Columns",
exportTitle: "Export",
exportAriaLabel: "Export",
exportCSVName: 'Export as CSV',
exportPDFName: 'Export as PDF',
exportCSVName: "Export as CSV",
exportPDFName: "Export as PDF",
searchTooltip: "Search",
searchPlaceholder: "Search",
},
Expand Down
14 changes: 7 additions & 7 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface Filter<RowData extends object> {
}
export interface ErrorState {
message: string;
errorCause: "query" | 'add' | 'update' | 'delete';
errorCause: "query" | "add" | "update" | "delete";
}

export interface Query<RowData extends object> {
Expand Down Expand Up @@ -110,7 +110,7 @@ export interface EditComponentProps<RowData extends object> {
onChange: (newValue: any) => void;
onRowDataChange: (newValue: RowData) => void;
columnDef: EditCellColumnDef;
errorState?: ErrorState
errorState?: ErrorState;
}

export interface EditCellColumnDef {
Expand Down Expand Up @@ -180,8 +180,10 @@ export interface Column<RowData extends object> {
| "onAdd"
| "never"
| ((columnDef: Column<RowData>, rowData: RowData) => boolean);
removable?: boolean;
validate?: (rowData: RowData) => { isValid: boolean, helperText?: string } | string | boolean,
removable?: boolean;
validate?: (
rowData: RowData
) => { isValid: boolean; helperText?: string } | string | boolean;
render?: (data: RowData, type: "row" | "group") => any;
searchable?: boolean;
sorting?: boolean;
Expand Down Expand Up @@ -268,9 +270,7 @@ export interface Icons {
ViewColumn?: React.ForwardRefExoticComponent<
React.RefAttributes<SVGSVGElement>
>;
Retry?: React.ForwardRefExoticComponent<
React.RefAttributes<SVGSVGElement>
>;
Retry?: React.ForwardRefExoticComponent<React.RefAttributes<SVGSVGElement>>;
}

export interface Options {
Expand Down

0 comments on commit 1f27a77

Please sign in to comment.