Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
f4825ae5
Commit
f4825ae5
authored
5 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
unused import
parent
8542febc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#465460
failed
5 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/utils/TabNavigation.tsx
+1
-3
1 addition, 3 deletions
src/utils/TabNavigation.tsx
src/utils/useNavigation.ts
+0
-1
0 additions, 1 deletion
src/utils/useNavigation.ts
with
1 addition
and
4 deletions
src/utils/TabNavigation.tsx
+
1
−
3
View file @
f4825ae5
import
{
useEffect
,
useState
}
from
'
react
'
;
import
{
useNavigate
,
useLocation
}
from
'
react-router-dom
'
;
import
{
openFromOtherPage
}
from
'
./openFromOtherpAge
'
;
import
{
useNavigation
}
from
'
.
'
;
import
{
useLoading
}
from
'
./LoadingContext
'
;
// Funktion, um den Haupttab zu öffnen
export
const
openTab
=
(
tabId
:
string
,
tabClass
:
string
)
=>
{
...
...
@@ -52,7 +51,6 @@ export const handleScrollToCollapse = (collapseId: string) => {
// Custom Hook zur zentralen Tab-Navigation
export
const
useTabNavigation
=
()
=>
{
const
{
setIsLoading
}
=
useLoading
();
// 2. Ladezustand hier verwenden
const
navigate
=
useNavigate
();
const
location
=
useLocation
();
const
[
activeTab
,
setActiveTab
]
=
useState
<
string
|
null
>
(
null
);
...
...
This diff is collapsed.
Click to expand it.
src/utils/useNavigation.ts
+
0
−
1
View file @
f4825ae5
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useState
}
from
"
react
"
;
import
{
useLoading
}
from
"
./LoadingContext
"
;
export
const
useNavigation
=
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment