Skip to content

Commit

Permalink
style: make all links use our color theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan-LukeKlopper committed Jun 6, 2024
1 parent 6cd9b4e commit 8e75c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Proposals.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ function Proposals(props) {
<div className="d-lg-flex d-none position-absolute mx-auto justify-content-center align-self-center">
<Nav fill variant="pillls" activeKey={filter.group} className={`${props.modal ? ' small' : ''}`} onSelect={(e) => setFilter({...filter, group: e})}>
<Nav.Item>
<Nav.Link eventKey="voting" disabled={filteredProposals(proposals, {...filter, group: 'voting'}).length < 1}>Voting Period</Nav.Link>
<Nav.Link eventKey="voting" className={`${props.theme === 'dark' ? 'dark-link' : 'light-link'}`} disabled={filteredProposals(proposals, {...filter, group: 'voting'}).length < 1}>Voting Period</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link eventKey="all">All Proposals</Nav.Link>
<Nav.Link eventKey="all" className={`${props.theme === 'dark' ? 'dark-link' : 'light-link'}`}>All Proposals</Nav.Link>
</Nav.Item>
</Nav>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ function Validators(props) {
<div className={`${!props.modal && 'd-md-flex'} d-none justify-content-center align-self-center`}>
<Nav fill variant="pillls" activeKey={filter.group} className={`flex-row${props.modal ? ' small' : ''}`} onSelect={(e) => setFilter({group: e})}>
<Nav.Item>
<Nav.Link eventKey="delegated" disabled={filteredValidators(validators, {...filter, group: 'delegated'}).length < 1}>My Delegations</Nav.Link>
<Nav.Link eventKey="delegated" className={`${props.theme === 'dark' ? 'dark-link' : 'light-link'}`} disabled={filteredValidators(validators, {...filter, group: 'delegated'}).length < 1}>My Delegations</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link eventKey="all">All Validators</Nav.Link>
<Nav.Link eventKey="all" className={`${props.theme === 'dark' ? 'dark-link' : 'light-link'}`}>All Validators</Nav.Link>
</Nav.Item>
</Nav>
</div>
Expand Down

0 comments on commit 8e75c4a

Please sign in to comment.