Skip to content

Commit ca55bda

Browse files
committed
Fix dsv import story
1 parent c90219b commit ca55bda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DSVImport.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { DSVImport, ColumnsType } from './';
2+
import { DSVImport, ColumnType } from './';
33
import { action } from '@storybook/addon-actions';
44
import styled from '@emotion/styled';
55

@@ -8,7 +8,7 @@ export default { title: 'Usage|Examples' };
88
type BasicType = { forename: string; surname: string; email: string };
99

1010
export const BasicUsage = () => {
11-
const columns: ColumnsType<BasicType> = [
11+
const columns: ColumnType<BasicType>[] = [
1212
{ key: 'forename', label: 'Forename' },
1313
{ key: 'surname', label: 'Surname' },
1414
{ key: 'email', label: 'Email' }
@@ -25,7 +25,7 @@ export const BasicUsage = () => {
2525
BasicUsage.story = { name: 'Basic usage' };
2626

2727
export const UsingOnChangeCallback = () => {
28-
const columns: ColumnsType<BasicType> = [
28+
const columns: ColumnType<BasicType>[] = [
2929
{ key: 'forename', label: 'Forename' },
3030
{ key: 'surname', label: 'Surname' },
3131
{ key: 'email', label: 'Email' }
@@ -58,7 +58,7 @@ const CustomTablePreview = styled(DSVImport.TablePreview)`
5858
`;
5959

6060
export const UsingOnValidationCallback = () => {
61-
const columns: ColumnsType<BasicType> = [
61+
const columns: ColumnType<BasicType>[] = [
6262
{ key: 'forename', label: 'Forename' },
6363
{ key: 'surname', label: 'Surname' },
6464
{ key: 'email', label: 'Email', rules: [{ constraint: { unique: true }, message: 'Duplicates are not allowed' }] }

0 commit comments

Comments
 (0)