diff --git a/react/infiniteScroll/src/Example/Example.tsx b/react/infiniteScroll/src/Example/Example.tsx
new file mode 100644
index 0000000..b48ee27
--- /dev/null
+++ b/react/infiniteScroll/src/Example/Example.tsx
@@ -0,0 +1,11 @@
+import { Grid, Column } from '@carbon/react';
+import { InfiniteScroll } from './InfiniteScroll';
+import './example.scss';
+
+export const Example = () => (
+
+
+
+
+
+);
diff --git a/react/infiniteScroll/src/InfiniteScroll.tsx b/react/infiniteScroll/src/Example/InfiniteScroll.tsx
similarity index 94%
rename from react/infiniteScroll/src/InfiniteScroll.tsx
rename to react/infiniteScroll/src/Example/InfiniteScroll.tsx
index 7b0d183..59ea32f 100644
--- a/react/infiniteScroll/src/InfiniteScroll.tsx
+++ b/react/infiniteScroll/src/Example/InfiniteScroll.tsx
@@ -17,9 +17,6 @@ const { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } =
DataTable;
import { fetchData, Resource, ResourceApiResponse } from './makeData';
-import { ExampleLink } from './ExampleLink';
-import { Launch } from '@carbon/react/icons';
-import * as packageJson from '../package.json';
const fetchSize = 50;
@@ -148,22 +145,6 @@ export const InfiniteScroll = () => {
return (
Virtualized infinite scroll
-
-
-
-
{/* {process.env.NODE_ENV === 'development' ? (
Notice: You are currently running React in
diff --git a/react/infiniteScroll/src/customTypings.d.ts b/react/infiniteScroll/src/Example/customTypings.d.ts
similarity index 100%
rename from react/infiniteScroll/src/customTypings.d.ts
rename to react/infiniteScroll/src/Example/customTypings.d.ts
diff --git a/react/infiniteScroll/src/App.scss b/react/infiniteScroll/src/Example/example.scss
similarity index 100%
rename from react/infiniteScroll/src/App.scss
rename to react/infiniteScroll/src/Example/example.scss
diff --git a/react/infiniteScroll/src/Example/index.ts b/react/infiniteScroll/src/Example/index.ts
new file mode 100644
index 0000000..8765fbd
--- /dev/null
+++ b/react/infiniteScroll/src/Example/index.ts
@@ -0,0 +1 @@
+export { Example } from './Example';
diff --git a/react/infiniteScroll/src/makeData.ts b/react/infiniteScroll/src/Example/makeData.ts
similarity index 100%
rename from react/infiniteScroll/src/makeData.ts
rename to react/infiniteScroll/src/Example/makeData.ts
diff --git a/react/infiniteScroll/src/ExampleLink.tsx b/react/infiniteScroll/src/ExampleLink.tsx
deleted file mode 100644
index 7a03b61..0000000
--- a/react/infiniteScroll/src/ExampleLink.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-export const ExampleLink = ({ icon, label, url }) => {
- const Icon = icon;
- return (
-
- {icon && }
- {label}
-
- );
-};
diff --git a/react/infiniteScroll/src/index.scss b/react/infiniteScroll/src/index.scss
index 8965062..e3f9104 100644
--- a/react/infiniteScroll/src/index.scss
+++ b/react/infiniteScroll/src/index.scss
@@ -3,21 +3,8 @@
);
@use '@carbon/styles/scss/type';
@use '@carbon/ibm-products/css/index';
-@use './App';
body {
margin: 0;
padding: 0;
}
-
-.example--link {
- @include type.type-style('label-01');
-
- display: flex;
- align-items: center;
- margin-right: 0.5rem;
-}
-
-.example--link__icon {
- margin-right: 0.25rem;
-}
diff --git a/react/infiniteScroll/src/index.ts b/react/infiniteScroll/src/index.ts
deleted file mode 100644
index 1dc3b66..0000000
--- a/react/infiniteScroll/src/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { InfiniteScroll } from './InfiniteScroll';
-
-export { InfiniteScroll };
diff --git a/react/infiniteScroll/src/main.tsx b/react/infiniteScroll/src/main.tsx
index 319d685..3a9d302 100644
--- a/react/infiniteScroll/src/main.tsx
+++ b/react/infiniteScroll/src/main.tsx
@@ -2,17 +2,14 @@ import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import {
CodeSnippet,
- Column,
- Grid,
Header,
HeaderContainer,
HeaderName,
} from '@carbon/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
-import { InfiniteScroll } from './InfiniteScroll';
-
import './index.scss';
+import { Example } from './Example';
const queryClient = new QueryClient();
const renderUIShellHeader = () => (
@@ -35,11 +32,7 @@ createRoot(document.getElementById('root')!).render(
{renderUIShellHeader()}
-
-
-
-
-
+
);
diff --git a/react/infiniteScroll/tsconfig.app.json b/react/infiniteScroll/tsconfig.app.json
index a68cf5e..a6e3949 100644
--- a/react/infiniteScroll/tsconfig.app.json
+++ b/react/infiniteScroll/tsconfig.app.json
@@ -21,7 +21,7 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
- "types": [ "./src/customTypings.d.ts" ],
+ "types": ["./src/Example/customTypings.d.ts"],
"resolveJsonModule": true
},
"include": ["./src"]