mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-08 09:34:40 +00:00
feat: export constants and change initial value
This commit is contained in:
parent
05f478bf43
commit
722e19589e
@ -9,7 +9,7 @@ type AdvisoryTopicsType = {
|
||||
}
|
||||
|
||||
const Advisories = () => {
|
||||
const [selectedTitle, setSelectedTitle] = useState('Bad Behaviour')
|
||||
const [selectedTitle, setSelectedTitle] = useState(Object.keys(advisoryTopics)[3])
|
||||
|
||||
const isSameTitle = (title: string) => selectedTitle === title
|
||||
|
||||
@ -58,7 +58,7 @@ export default Advisories
|
||||
|
||||
const unicodeNumbers = ['➀', '➁', '➂', '➃', '➄', '➅']
|
||||
|
||||
const advisoryTopics: AdvisoryTopicsType = {
|
||||
export const advisoryTopics: AdvisoryTopicsType = {
|
||||
'Proof of Stake': [
|
||||
'Proof of Stake systems require validators to hold and lock up a certain amount of cryptocurrency to participate.',
|
||||
'In Proof of Stake, the chances of creating a block is proportional to the amount of cryptocurrency held.',
|
||||
|
Loading…
x
Reference in New Issue
Block a user