diff --git a/src/components/NonInteractiveList/index.ts b/src/components/NonInteractiveList/index.ts deleted file mode 100644 index c4a8f47..0000000 --- a/src/components/NonInteractiveList/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './NonInteractiveList' diff --git a/src/components/NonInteractiveList/NonInteractiveList.stories.tsx b/src/components/NonInteractiveTable/NonInteractiveTable.stories.tsx similarity index 90% rename from src/components/NonInteractiveList/NonInteractiveList.stories.tsx rename to src/components/NonInteractiveTable/NonInteractiveTable.stories.tsx index bef2537..f542a0f 100644 --- a/src/components/NonInteractiveList/NonInteractiveList.stories.tsx +++ b/src/components/NonInteractiveTable/NonInteractiveTable.stories.tsx @@ -1,16 +1,16 @@ import type { Meta, StoryObj } from '@storybook/react' -import NonInteractiveList from './NonInteractiveList' +import NonInteractiveTable from './NonInteractiveTable' -const meta: Meta = { - title: 'WCA-Components/NonInteractiveList', - component: NonInteractiveList, +const meta: Meta = { + title: 'WCA-Components/NonInteractiveTable', + component: NonInteractiveTable, // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs tags: ['autodocs'], // More on argTypes: https://storybook.js.org/docs/react/api/argtypes } export default meta -type Story = StoryObj +type Story = StoryObj export const Competitors: Story = { // More on args: https://storybook.js.org/docs/react/writing-stories/args diff --git a/src/components/NonInteractiveList/NonInteractiveList.tsx b/src/components/NonInteractiveTable/NonInteractiveTable.tsx similarity index 97% rename from src/components/NonInteractiveList/NonInteractiveList.tsx rename to src/components/NonInteractiveTable/NonInteractiveTable.tsx index d6922d6..6d2ecf6 100644 --- a/src/components/NonInteractiveList/NonInteractiveList.tsx +++ b/src/components/NonInteractiveTable/NonInteractiveTable.tsx @@ -1,4 +1,4 @@ -import './noninteractivelist.scss' +import './noninteractivetable.scss' import { EventId } from '@wca/helpers' import React from 'react' import CubingIcon from '../CubingIcon' @@ -24,7 +24,7 @@ interface ListProps { loading: boolean } -export default function NonInteractiveList({ +export default function NonInteractiveTable({ rows, header, loading, diff --git a/src/components/NonInteractiveTable/index.ts b/src/components/NonInteractiveTable/index.ts new file mode 100644 index 0000000..071e447 --- /dev/null +++ b/src/components/NonInteractiveTable/index.ts @@ -0,0 +1 @@ +export { default } from './NonInteractiveTable' diff --git a/src/components/NonInteractiveList/noninteractivelist.scss b/src/components/NonInteractiveTable/noninteractivetable.scss similarity index 100% rename from src/components/NonInteractiveList/noninteractivelist.scss rename to src/components/NonInteractiveTable/noninteractivetable.scss diff --git a/tsconfig.json b/tsconfig.json index 97f9ad0..839745f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk "isolatedModules": true, // Unconditionally emit imports for unresolved files "jsx": "react", // Support JSX in .tsx files - "lib": ["dom", "dom.iterable", "esnext"], // NonInteractiveList of library files to be included in the compilation + "lib": ["dom", "dom.iterable", "esnext"], // NonInteractiveTable of library files to be included in the compilation "module": "esnext", // Specify module code generation "moduleResolution": "node", // Resolve modules using Node.js style "noEmit": false, // Do not emit output (meaning do not compile code, only perform type checking)