Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tp47 committed Sep 23, 2023
1 parent 7bb8790 commit 1345e4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/providers/withRouting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function navigate(path: string): void {
if (path in routes) {
// @ts-ignore
PageComponent = routes[path];
page = new PageComponent();
page = new PageComponent({});
} else {
PageComponent = ErrorPage;
page = new ErrorPage({ errorCode: 404, errorMessage: "Не туда попали" });
Expand Down
1 change: 0 additions & 1 deletion src/app/styles/withModules.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import "@/shared/ui/modal/modal.module.css";
@import "@/pages/error/errorPage.module.css";
@import "@/shared/ui/textField/textField.module.css";
@import "@/shared/ui/button/button.module.css";
@import "@/pages/signup/signupPage.module.css";
@import "@/pages/profile/profilePage.module.css";
Expand Down

0 comments on commit 1345e4d

Please sign in to comment.