Skip to content

Commit

Permalink
Update to PrimeReact 9.2.3 and fixed ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Apr 11, 2023
1 parent fa87758 commit 910382a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sakai-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"next": "13.2.3",
"primeflex": "3.3.0",
"primeicons": "^6.0.1",
"primereact": "9.2.2",
"primereact": "9.2.3",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion sakai-ts/layout/AppConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const AppConfig = (props: AppConfigProps) => {
};

const changeTheme = (theme: string, colorScheme: string) => {
PrimeReact.changeTheme(layoutConfig.theme, theme, 'theme-css', () => {
PrimeReact.changeTheme?.(layoutConfig.theme, theme, 'theme-css', () => {
setLayoutConfig((prevState: LayoutConfig) => ({ ...prevState, theme, colorScheme }));
});
};
Expand Down
8 changes: 4 additions & 4 deletions sakai-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sakai-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"chart.js": "4.2.1",
"primeflex": "3.3.0",
"primeicons": "^6.0.1",
"primereact": "9.2.2",
"primereact": "9.2.3",
"typescript": "5.0.4"
},
"devDependencies": {
Expand Down

1 comment on commit 910382a

@vercel
Copy link

@vercel vercel bot commented on 910382a Apr 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sakai-react – ./

sakai.primereact.org
sakai-react-git-prod-primetek.vercel.app
sakai-react-primetek.vercel.app

Please sign in to comment.