File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import KudosPage from '../../pages/KudosPage';
4343import ManageKudosPage from '../../pages/ManageKudosPage' ;
4444import SkillCategoriesPage from '../../pages/SkillCategoriesPage' ;
4545import SkillCategoryEditPage from '../../pages/SkillCategoryEditPage' ;
46+ import CloseWindow from '../../pages/CloseWindow' ;
4647
4748export default function Routes ( ) {
4849 const { state } = useContext ( AppContext ) ;
@@ -204,7 +205,7 @@ export default function Routes() {
204205 < ManageKudosPage />
205206 </ Route >
206207 < Route path = "/login?close=true" >
207- { window . close ( ) }
208+ < CloseWindow />
208209 </ Route >
209210 </ Switch >
210211 ) ;
Original file line number Diff line number Diff line change 1+ window . close ( ) ;
2+
3+ export default function CloseWindow ( ) {
4+ return ( < > </ > ) ;
5+ }
You can’t perform that action at this time.
0 commit comments