Skip to content

Commit

Permalink
more storybook upgrade cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Apr 17, 2023
1 parent c70cb1e commit a71ba47
Show file tree
Hide file tree
Showing 50 changed files with 135 additions and 208 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
MRT_AggregationFns,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Meta } from '@storybook/react';
import React, { useEffect, useMemo, useState } from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_Column,
type MRT_ColumnDef,
} from 'material-react-table';
Expand Down Expand Up @@ -255,3 +254,29 @@ export const GroupingStateManaged = () => {
/>
);
};

export const GroupingAndDraggingWithSomeDisabledGrouping = () => {
const _columns = useMemo<MRT_ColumnDef<Person>[]>(
() => [
{
accessorKey: 'firstName',
header: 'First Name',
enableGrouping: false,
},
{
accessorKey: 'lastName',
header: 'Last Name',
},
],
[],
);

return (
<MaterialReactTable
columns={_columns}
data={data}
enableColumnDragging
enableGrouping
/>
);
};
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
MRT_ColumnOrderState,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
type MRT_ColumnFiltersState,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React, { useState } from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';
import { Button } from '@mui/material';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';
import { Button, MenuItem as MuiMenuItem, styled } from '@mui/material';
import AccountCircleIcon from '@mui/icons-material/AccountCircle';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
type MRT_Row,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useRef, useState } from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
type MRT_TableInstance,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
type MRT_SortingState,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
MRT_FullScreenToggleButton,
} from 'material-react-table';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import { Meta } from '@storybook/react';
import MaterialReactTable, {
type MaterialReactTableProps,
type MRT_ColumnDef,
} from 'material-react-table';
import { Meta } from '@storybook/react';
import MaterialReactTable, { type MRT_ColumnDef } from 'material-react-table';
import { faker } from '@faker-js/faker';

const meta: Meta = {
Expand Down
Loading

0 comments on commit a71ba47

Please sign in to comment.