mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Fix TableHelp alias path
This commit is contained in:
@@ -9,7 +9,7 @@ export default {
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
'^@components/table$': '<rootDir>/src/components/table',
|
||||
'^@components/Table$': '<rootDir>/src/components/table',
|
||||
'^@components/(.*)$': '<rootDir>/src/components/$1',
|
||||
'^@util/(.*)$': '<rootDir>/src/util/$1',
|
||||
'^@shared/(.*)$': '<rootDir>/shared/$1',
|
||||
|
||||
@@ -19,7 +19,7 @@ import type { FilterFn } from '@tanstack/table-core'
|
||||
import { useLocation, useNavigate } from 'react-router-dom'
|
||||
import { ActionComponent } from './ActionComponent'
|
||||
import { usePageContext } from '../Page'
|
||||
import { TableHelp } from '@components/table'
|
||||
import { TableHelp } from '@components/Table'
|
||||
import { useUser } from '@/hooks/user'
|
||||
import { defaultPagination, defaultPaginationSmall } from '@/common'
|
||||
import '../../styles/TableView.css'
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"baseUrl": ".",
|
||||
"types": ["vite/client", "jest", "node"],
|
||||
"paths": {
|
||||
"@components/table": ["./src/components/table"],
|
||||
"@components/Table": ["./src/components/table"],
|
||||
"@/*": ["./src/*"],
|
||||
"@components/*": ["./src/components/*"],
|
||||
"@util/*": ["./src/util/*"],
|
||||
|
||||
@@ -21,7 +21,7 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: [
|
||||
{ find: '@components/table', replacement: path.resolve(__dirname, './src/components/table') },
|
||||
{ find: '@components/Table', replacement: path.resolve(__dirname, './src/components/table') },
|
||||
{ find: '@', replacement: path.resolve(__dirname, './src/') },
|
||||
{ find: '@components', replacement: path.resolve(__dirname, './src/components') },
|
||||
{ find: '@util', replacement: path.resolve(__dirname, './src/util') },
|
||||
|
||||
Reference in New Issue
Block a user