2024-10-08 09:31:09: merge [main:da639ea1a284be33cf657a0ef49064e738c334d1];
This commit is contained in:
1 parent
3e52a14c0a
commit
1a1d2b594c
12 files changed
+38
-21
No files matched your search
@@ -8,6 +8,7 @@ import { darkTheme, lightTheme } from '@constants/theme.ts'
|
||||
import { Context } from '@stores/index.tsx'
|
||||
|
||||
import Routers from '@routes/Routers'
|
||||
import { routePaths } from '@routes/routePaths.ts'
|
||||
|
||||
import './app.scss'
|
||||
|
||||
@@ -23,7 +24,11 @@ const App = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const prevRoute = sessionStorage.getItem('prevRoute')
|
||||
if (location.pathname !== prevRoute) {
|
||||
if (
|
||||
location.pathname !== routePaths.error &&
|
||||
location.pathname !== routePaths.login &&
|
||||
location.pathname !== prevRoute
|
||||
) {
|
||||
sessionStorage.setItem('prevRoute', location.pathname)
|
||||
}
|
||||
}, [location])
|
||||
|
||||
@@ -171,6 +171,7 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
|
||||
<section className="applications-content">
|
||||
<Column
|
||||
title="Приложения"
|
||||
searchPlaceholder="Введите имя или id"
|
||||
onUpdateItem={updateApplicationModal}
|
||||
showUpdateBtn={true}
|
||||
onAddItem={addApplicationModal}
|
||||
|
||||
Reference in new issue
Block a user