Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Block Explorer UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
hive
Block Explorer UI
Commits
22d922d7
Commit
22d922d7
authored
8 months ago
by
mcfarhat
Browse files
Options
Downloads
Patches
Plain Diff
resolve 286 enhancement - add witness vote count
parent
398a449f
No related branches found
No related tags found
1 merge request
!354
resolve 286 enhancement - add witness vote count
Pipeline
#99212
failed
8 months ago
Stage: build
Stage: test
Stage: test-report-aggregate
Stage: cleanup
Changes
2
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Config.ts
+1
-0
1 addition, 0 deletions
Config.ts
components/account/AccountWitnessVotesCard.tsx
+2
-1
2 additions, 1 deletion
components/account/AccountWitnessVotesCard.tsx
with
3 additions
and
1 deletion
Config.ts
+
1
−
0
View file @
22d922d7
...
...
@@ -14,6 +14,7 @@ export const config = {
witnesses
:
200
,
home
:
20
},
maxWitnessVotes
:
30
,
lastBlocksForWidget
:
20
,
firstBlockTime
:
"
2016-03-24T16:05:00
"
,
precisions
:
{
...
...
This diff is collapsed.
Click to expand it.
components/account/AccountWitnessVotesCard.tsx
+
2
−
1
View file @
22d922d7
...
...
@@ -4,6 +4,7 @@ import Link from "next/link";
import
{
Card
,
CardContent
,
CardHeader
}
from
"
../ui/card
"
;
import
{
Table
,
TableBody
,
TableRow
,
TableCell
}
from
"
../ui/table
"
;
import
{
cn
}
from
"
@/lib/utils
"
;
import
{
config
}
from
"
@/Config
"
;
type
AccountWitnessVotesCardProps
=
{
voters
:
string
[];
...
...
@@ -61,7 +62,7 @@ const AccountWitnessVotesCard: React.FC<AccountWitnessVotesCardProps> = ({
onClick
=
{
handlePropertiesVisibility
}
className
=
"h-full flex justify-between align-center p-2 hover:bg-slate-600 cursor-pointer px-4"
>
<
div
className
=
"text-lg"
>
Witness Votes
</
div
>
<
div
className
=
"text-lg"
>
Witness Votes
(
{
voters
.
length
}
/
{
config
.
maxWitnessVotes
}
)
</
div
>
{
isPropertiesHidden
?
<
ArrowDown
/>
:
<
ArrowUp
/>
}
</
div
>
...
...
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