Skip to content

Commit

Permalink
move libs/pagination too and get rid of @oxide/pagination alias
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Feb 23, 2024
1 parent 11351e5 commit bf9e4ff
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 61 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
'',
'^@oxide/(.*)$',
'',
'^~/(.*)$',
'^app/(.*)$',
'',
'^[./]',
Expand Down
2 changes: 1 addition & 1 deletion app/layouts/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import { useRef } from 'react'
import { Outlet } from 'react-router-dom'

import { Pagination } from '@oxide/pagination'
import { SkipLinkTarget } from '@oxide/ui'
import { classed } from '@oxide/util'

import { Pagination } from '~/pagination'
import { PageActionsTarget } from 'app/components/PageActions'
import { useScrollRestoration } from 'app/hooks/use-scroll-restoration'

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion app/table/QueryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ import {
type Result,
type ResultItem,
} from '@oxide/api'
import { Pagination, usePagination } from '@oxide/pagination'
import { EmptyMessage, TableEmptyBox } from '@oxide/ui'
import { invariant, isOneOf } from '@oxide/util'

import { Pagination, usePagination } from '~/pagination'

import { DefaultCell } from './cells'
import { getActionsCol, getMultiSelectCol, getSelectCol, type MakeActions } from './columns'
import { Table } from './Table'
Expand Down
57 changes: 0 additions & 57 deletions libs/pagination/Pagination.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"noEmit": true,
"outDir": "dist",
"paths": {
"~/*": ["app/*"],
"app/*": ["app/*"],
"@oxide/gen/*": ["libs/api/__generated__/*"],
"@oxide/api": ["libs/api/index.ts"],
"@oxide/api-mocks": ["libs/api-mocks/index.ts"],
"@oxide/ui": ["libs/ui/index.ts"],
"@oxide/util": ["libs/util/index.ts"],
"@oxide/table": ["app/table/index.ts"],
"@oxide/pagination": ["libs/pagination/index.tsx"]
"@oxide/table": ["app/table/index.ts"]
},
"resolveJsonModule": true,
"rootDir": ".",
Expand Down

0 comments on commit bf9e4ff

Please sign in to comment.