Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
cef5fca1
Commit
cef5fca1
authored
Jul 23, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change texts
parent
a309ca17
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
PopoverContent.tsx
ui/marketplace/Rating/PopoverContent.tsx
+1
-1
Rating.tsx
ui/marketplace/Rating/Rating.tsx
+1
-1
TriggerButton.tsx
ui/marketplace/Rating/TriggerButton.tsx
+3
-3
No files found.
ui/marketplace/Rating/PopoverContent.tsx
View file @
cef5fca1
...
...
@@ -9,7 +9,7 @@ import IconSvg from 'ui/shared/IconSvg';
import
Stars
from
'
./Stars
'
;
import
type
{
RateFunction
}
from
'
./useRatings
'
;
const
ratingDescriptions
=
[
'
Terrible
'
,
'
Poor
'
,
'
Average
'
,
'
Very good
'
,
'
Outstanding
'
];
const
ratingDescriptions
=
[
'
Very bad
'
,
'
Bad
'
,
'
Average
'
,
'
Good
'
,
'
Excellent
'
];
type
Props
=
{
appId
:
string
;
...
...
ui/marketplace/Rating/Rating.tsx
View file @
cef5fca1
...
...
@@ -64,7 +64,7 @@ const Rating = ({
canRate=
{
canRate
}
/>
</
PopoverTrigger
>
<
PopoverContent
w=
"2
74
px"
mx=
{
3
}
>
<
PopoverContent
w=
"2
50
px"
mx=
{
3
}
>
<
PopoverBody
p=
{
4
}
>
<
Content
appId=
{
appId
}
...
...
ui/marketplace/Rating/TriggerButton.tsx
View file @
cef5fca1
...
...
@@ -15,12 +15,12 @@ type Props = {
const
getTooltipText
=
(
canRate
:
boolean
|
undefined
)
=>
{
if
(
canRate
===
undefined
)
{
return
<>
You need a connected wallet to leave your rating.
<
br
/>
Link your wallet to Blockscout first
</>;
return
<>
Please connect your wallet to Blockscout to rate this DApp.
<
br
/>
Only wallets with 5+ transactions are eligible
</>;
}
if
(
!
canRate
)
{
return
<>
New wallet users are not eligible to leave ratings.
<
br
/>
Please connect a different wallet
</>;
return
<>
Brand new wallets cannot leave ratings.
<
br
/>
Please connect a wallet with 5 or more transactions on this chain
</>;
}
return
<>
Ratings
are derived from reviews by trust
ed users.
<
br
/>
Click here to rate!
</>;
return
<>
Ratings
come from verifi
ed users.
<
br
/>
Click here to rate!
</>;
};
const
TriggerButton
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment