mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-03-02 03:50:40 +00:00
format
This commit is contained in:
parent
92bb610dfc
commit
abe733c3b9
@ -12,7 +12,7 @@ type AdvisoryTopicsType = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const Advisories = () => {
|
const Advisories = () => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch()
|
||||||
const { subStepAdvisories } = useSelector((state: RootState) => state.advisories)
|
const { subStepAdvisories } = useSelector((state: RootState) => state.advisories)
|
||||||
const [selectedTitle, setSelectedTitle] = useState(Object.keys(advisoryTopics)[0])
|
const [selectedTitle, setSelectedTitle] = useState(Object.keys(advisoryTopics)[0])
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ const Advisories = () => {
|
|||||||
const index = topics.indexOf(currentTitle)
|
const index = topics.indexOf(currentTitle)
|
||||||
return index <= subStepAdvisories ? true : false
|
return index <= subStepAdvisories ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
const getIndexTitle = (title: string): number => {
|
const getIndexTitle = (title: string): number => {
|
||||||
const topics = Object.keys(advisoryTopics)
|
const topics = Object.keys(advisoryTopics)
|
||||||
const index = topics.indexOf(title)
|
const index = topics.indexOf(title)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user