Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
thecybernanny-webapp
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asranov0003
thecybernanny-webapp
Commits
aab2f9f5
Commit
aab2f9f5
authored
Sep 23, 2025
by
asranov0003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fetch devices section header
parent
184b37ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
SectionHeader.tsx
src/layouts/SectionHeader/SectionHeader.tsx
+9
-2
No files found.
src/layouts/SectionHeader/SectionHeader.tsx
View file @
aab2f9f5
import
React
,
{
useState
}
from
"react"
;
import
React
,
{
use
Effect
,
use
State
}
from
"react"
;
import
"./SectionHeader.css"
;
import
{
Link
,
useNavigate
}
from
"react-router-dom"
;
import
{
...
...
@@ -7,7 +7,10 @@ import {
type
RootState
,
}
from
"../../stores/store"
;
import
CDeviceSelect
from
"../../components/CDeviceSelect"
;
import
{
setSelectedDevice
}
from
"../../stores/slices/deviceSlice"
;
import
{
fetchDevices
,
setSelectedDevice
,
}
from
"../../stores/slices/deviceSlice"
;
import
{
BiArrowBack
}
from
"react-icons/bi"
;
import
{
useTranslation
}
from
"react-i18next"
;
import
CButton
from
"../../components/CButton"
;
...
...
@@ -37,6 +40,10 @@ const SectionHeader: React.FC<SectionHeaderProps> = ({ to }) => {
setIsOpenInfoModal
((
prev
)
=>
!
prev
);
};
useEffect
(()
=>
{
dispatch
(
fetchDevices
());
},
[
dispatch
]);
return
(
<
div
className=
"sectionheader"
>
<
Link
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment