Skip to content

Commit 4bfd227

Browse files
authored
Move libs/table and libs/pagination into app/ (#1971)
move libs/table and libs/pagination into app/
1 parent cb109cb commit 4bfd227

34 files changed

+8
-15
lines changed

.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default {
1818
'',
1919
'^@oxide/(.*)$',
2020
'',
21+
'^~/(.*)$',
2122
'^app/(.*)$',
2223
'',
2324
'^[./]',
File renamed without changes.

libs/pagination/__tests__/use-pagination.spec.ts renamed to app/hooks/use-pagination.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { act, renderHook } from '@testing-library/react'
99
import { describe, expect, it } from 'vitest'
1010

11-
import { usePagination } from '../use-pagination'
11+
import { usePagination } from './use-pagination'
1212

1313
describe('usePagination', () => {
1414
it('starts with empty state', () => {
File renamed without changes.

app/layouts/helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import { useRef } from 'react'
99
import { Outlet } from 'react-router-dom'
1010

11-
import { Pagination } from '@oxide/pagination'
1211
import { SkipLinkTarget } from '@oxide/ui'
1312
import { classed } from '@oxide/util'
1413

14+
import { Pagination } from '~/components/Pagination'
1515
import { PageActionsTarget } from 'app/components/PageActions'
1616
import { useScrollRestoration } from 'app/hooks/use-scroll-restoration'
1717

libs/table/QueryTable.tsx renamed to app/table/QueryTable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ import {
3131
type Result,
3232
type ResultItem,
3333
} from '@oxide/api'
34-
import { Pagination, usePagination } from '@oxide/pagination'
3534
import { EmptyMessage, TableEmptyBox } from '@oxide/ui'
3635
import { invariant, isOneOf } from '@oxide/util'
3736

37+
import { Pagination } from '~/components/Pagination'
38+
import { usePagination } from '~/hooks/use-pagination'
39+
3840
import { DefaultCell } from './cells'
3941
import { getActionsCol, getMultiSelectCol, getSelectCol, type MakeActions } from './columns'
4042
import { Table } from './Table'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)