Fix TableHelp alias path

This commit is contained in:
Kari Lintulaakso
2025-12-12 13:30:06 +02:00
parent fe57b6cb80
commit f72b91a399
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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'
+1 -1
View File
@@ -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/*"],
+1 -1
View File
@@ -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') },