Seth0330 commited on
Commit
cd32c03
·
verified ·
1 Parent(s): a3e91be

Create frontend/src/utils.js

Browse files
Files changed (1) hide show
  1. frontend/src/utils.js +5 -0
frontend/src/utils.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ export function createPageUrl(pageName) {
2
+ if (pageName === "Dashboard") return "/dashboard";
3
+ if (pageName === "History") return "/history";
4
+ return "/dashboard";
5
+ }