Skip to content

Commit

Permalink
chore: cleanup gallery package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Sep 3, 2024
1 parent aedb210 commit 97b7cf0
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 110 deletions.
6 changes: 0 additions & 6 deletions packages/gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@carbon/ibm-products": "^2.47.0",
"@carbon/react": "^1.64.1",
"@faker-js/faker": "^8.4.1",
"@tanstack/match-sorter-utils": "^8.19.4",
"@tanstack/react-query": "^5.52.1",
"@tanstack/react-table": "^8.20.1",
"@tanstack/react-virtual": "^3.10.4",
"classnames": "^2.5.1",
"batch-actions": "*",
"customize-columns": "*",
"editable-cells": "*",
Expand Down
18 changes: 0 additions & 18 deletions packages/gallery/src/customTypings.d.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/gallery/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const renderUIShellHeader = () => (

createRoot(document.getElementById('root')!).render(
<QueryClientProvider client={queryClient}>

<StrictMode>
{renderUIShellHeader()}
<Grid className='page-grid'>
Expand Down
76 changes: 0 additions & 76 deletions packages/gallery/src/makeData.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/gallery/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,

"types": [ "./src/customTypings.d.ts" ]
},
"include": ["./src"]
}
20 changes: 12 additions & 8 deletions packages/infiniteScroll/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import {
HeaderContainer,
HeaderName,
} from '@carbon/react'
import { QueryClient, QueryClientProvider, } from '@tanstack/react-query'

import { InfiniteScroll } from './InfiniteScroll'

import './index.scss'
const queryClient = new QueryClient()

const renderUIShellHeader = () => (
<HeaderContainer
Expand All @@ -26,12 +28,14 @@ const renderUIShellHeader = () => (
);

createRoot(document.getElementById('root')!).render(
<StrictMode>
{renderUIShellHeader()}
<Grid className='page-grid'>
<Column sm={4} md={8} lg={16}>
<InfiniteScroll />
</Column>
</Grid>
</StrictMode>
<QueryClientProvider client={queryClient}>
<StrictMode>
{renderUIShellHeader()}
<Grid className='page-grid'>
<Column sm={4} md={8} lg={16}>
<InfiniteScroll />
</Column>
</Grid>
</StrictMode>
</QueryClientProvider>
)

0 comments on commit 97b7cf0

Please sign in to comment.