Skip to content

Commit

Permalink
js to ts index
Browse files Browse the repository at this point in the history
  • Loading branch information
MARZOOQUE committed Apr 17, 2024
1 parent dbda0f1 commit 699e60c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/resources/sample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import VisibilityOutlinedIcon from '@mui/icons-material/VisibilityOutlined';
import { IGTable } from './IGTable';


export const IconField = (props) => {
export const IconField = (props: any) => {
const record = useRecordContext(props);
return <VisibilityOutlinedIcon onClick={() => {console.log("[DEBUG] ", record);}}></VisibilityOutlinedIcon>
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"test-admin": ["src/resources/index.js"]
"test-admin": ["src/resources/index.ts"]
}
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
plugins: [react()],
build: {
lib: {
entry: resolve('src', 'resources/index.js'),
entry: resolve('src', 'resources/index.ts'),
name: 'TestAdmin',
formats: ['es', 'umd'],
fileName: (format) => `test-admin.${format}.js`,
Expand Down

0 comments on commit 699e60c

Please sign in to comment.