diff --git a/declaration.d.ts b/declaration.d.ts new file mode 100644 index 0000000..f483ffa --- /dev/null +++ b/declaration.d.ts @@ -0,0 +1 @@ +declare module 'react-sparklines'; diff --git a/package.json b/package.json index 0584169..f7d9f37 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,11 @@ "version": "0.1.10", "private": true, "dependencies": { - "apexcharts": "^4.1.0", - "react": "^18.3.1", - "react-apexcharts": "^1.6.0", - "react-dom": "^18.3.1", - "react-router-dom": "^7.0.1", + "apexcharts": "^4.2.0", + "react": "^19.0.0", + "react-apexcharts": "^1.7.0", + "react-dom": "^19.0.0", + "react-router-dom": "^7.0.2", "react-scripts": "^5.0.1", "react-sparklines": "^1.7.0", "typescript": "^5.6.3" @@ -37,22 +37,22 @@ ] }, "devDependencies": { - "@types/node": "^22.10.1", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", + "@types/node": "^22.10.2", + "@types/react": "^19.0.1", + "@types/react-dom": "^19.0.2", "@types/react-sparklines": "^1.7.5", "@types/uuid": "^10.0.0", - "@typescript-eslint/eslint-plugin": "^8.16.0", - "@typescript-eslint/parser": "^8.16.0", - "eslint": "^9.16.0", + "@typescript-eslint/eslint-plugin": "^8.18.1", + "@typescript-eslint/parser": "^8.18.1", + "eslint": "^9.17.0", "eslint-config-prettier": "^9.1.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react": "^7.37.2", - "eslint-plugin-react-hooks": "^5.0.0", - "prettier": "^3.4.1", - "typescript-eslint": "^8.16.0" + "eslint-plugin-react-hooks": "^5.1.0", + "prettier": "^3.4.2", + "typescript-eslint": "^8.18.1" } } diff --git a/src/App.tsx b/src/App.tsx index 910b82f..97f6897 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import Navigation from './navigation/Navigation'; -const App = (): JSX.Element => ; +const App: React.FC = () => ; export default App; diff --git a/src/components/Common/Box.tsx b/src/components/Common/Box.tsx index 4d36d84..64e8ce6 100644 --- a/src/components/Common/Box.tsx +++ b/src/components/Common/Box.tsx @@ -3,6 +3,6 @@ interface IProps { children: React.ReactNode; } -const Box = ({ children }: IProps): JSX.Element =>
{children}
; +const Box: React.FC = ({ children }) =>
{children}
; export default Box; diff --git a/src/components/Forms/FormButton.tsx b/src/components/Forms/FormButton.tsx index 832d4a6..e1d553c 100644 --- a/src/components/Forms/FormButton.tsx +++ b/src/components/Forms/FormButton.tsx @@ -5,7 +5,7 @@ interface IProps { onClick: (e: React.FormEvent) => void; } -const FormButton = ({ type, text, onClick }: IProps): JSX.Element => ( +const FormButton: React.FC = ({ type, text, onClick }) => (