Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
www.1694.io
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
Issue 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
voltaire
www.1694.io
Commits
ea17681c
Commit
ea17681c
authored
3 days ago
by
Darlington Wleh
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!336
parents
caa2671a
79bf7535
No related branches found
Branches containing commit
No related tags found
1 merge request
!336
Dev
Pipeline
#15034
failed
2 days ago
Stage: build
Stage: preview
Stage: production
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/components/molecules/ProposalCard.tsx
+17
-6
17 additions, 6 deletions
frontend/src/components/molecules/ProposalCard.tsx
with
17 additions
and
6 deletions
frontend/src/components/molecules/ProposalCard.tsx
+
17
−
6
View file @
ea17681c
...
...
@@ -57,7 +57,9 @@ function ProposalCard({ proposal }: { proposal: any }) {
const
budgetCategory
=
proposal
?.
attributes
?.
bd_psapb
?.
data
?.
attributes
?.
type_name
?.
data
?.
attributes
?.
type_name
||
'
Unspecified
'
;
const
budgetRequested
=
costingData
?.
ada_amount
||
'
N/A
'
;
const
rawBudget
=
costingData
?.
ada_amount
||
'
0
'
;
const
budgetRequested
=
Number
(
rawBudget
);
const
formattedBudget
=
new
Intl
.
NumberFormat
(
'
en-US
'
).
format
(
budgetRequested
);
const
proposalBenefit
=
psapbData
?.
proposal_benefit
||
'
No benefit info
'
;
const
username
=
creator
?.
govtool_username
||
'
anonymous
'
;
const
commentsCount
=
proposal
?.
attributes
?.
prop_comments_number
||
0
;
...
...
@@ -106,13 +108,22 @@ function ProposalCard({ proposal }: { proposal: any }) {
alignItems
=
"flex-start"
>
<
Box
>
<
Typography
variant
=
"h6"
fontWeight
=
"bold"
>
{
title
}
</
Typography
>
<
Typography
variant
=
"caption"
color
=
"text.secondary"
>
<
Link
href
=
{
`/proposals/
${
proposal
?.
id
}
`
}
passHref
legacyBehavior
>
<
Typography
component
=
"a"
variant
=
"h6"
fontWeight
=
"bold"
display
=
"block"
style
=
{
{
textDecoration
:
'
none
'
,
color
:
'
inherit
'
}
}
>
{
title
}
</
Typography
>
</
Link
>
<
Typography
variant
=
"caption"
color
=
"text.secondary"
display
=
"block"
>
@
{
username
}
</
Typography
>
</
Box
>
<
Tooltip
title
=
"Share"
>
<
span
>
<
IconButton
...
...
@@ -147,7 +158,7 @@ function ProposalCard({ proposal }: { proposal: any }) {
color
=
"text.darkPurple"
data-testid
=
"budget-requested-amount"
>
₳
{
budgetRequested
}
₳
{
formattedBudget
}
</
Typography
>
</
Box
>
...
...
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