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
3ad15d1d
Commit
3ad15d1d
authored
Oct 30, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update icons and fix text weight
parent
94dd0828
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
10 deletions
+29
-10
merits.svg
icons/merits.svg
+3
-3
merits_slim.svg
icons/merits_slim.svg
+10
-0
merits_with_dot.svg
icons/merits_with_dot.svg
+3
-3
merits_with_dot_slim.svg
icons/merits_with_dot_slim.svg
+4
-0
name.d.ts
public/icons/name.d.ts
+2
-0
RewardsButton.tsx
ui/rewards/RewardsButton.tsx
+6
-3
RewardsNavLink.tsx
ui/rewards/RewardsNavLink.tsx
+1
-1
No files found.
icons/merits.svg
View file @
3ad15d1d
<svg
viewBox=
"0 0 30 30"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg
"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 24 24"
fill=
"none
"
>
<path
d=
"M1
3.229 9.946c.401 0 .727.329.727.735v.636a.731.731 0 0 1-.727.735h-.353a.731.731 0 0 0-.727.735v6.532a.731.731 0 0 1-.727.735h-.695A.731.731 0 0 1 10 19.32v-6.532c0-.406.326-.735.727-.735h.352c.402 0 .728-.33.728-.736v-.635c0-.406.325-.735.727-.735h.694ZM17.54 9.946c.402 0 .728.329.728.735v.636c0 .405.326.735.727.735h.278c.401 0 .727.329.727.735v6.532a.731.731 0 0 1-.727.735h-.695a.731.731 0 0 1-.727-.735v-6.532a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.736v-.635c0-.406.326-.735.727-.735h.695ZM15.362 13.977c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.735v-2.622c0-.406.326-.735.728-.735
h.694Z"
fill=
"currentColor"
/>
<path
d=
"M1
0.229 6.946c.401 0 .727.329.727.735v.636a.731.731 0 0 1-.727.735h-.353a.731.731 0 0 0-.727.735v6.532a.731.731 0 0 1-.727.735h-.695A.731.731 0 0 1 7 16.32V9.787c0-.406.326-.735.727-.735h.353c.401 0 .727-.33.727-.736v-.635c0-.406.325-.735.727-.735h.694ZM14.54 6.946c.403 0 .728.329.728.735v.635c0 .407.326.736.727.736h.278c.401 0 .727.329.727.735v6.532a.731.731 0 0 1-.727.735h-.695a.731.731 0 0 1-.727-.735V9.787a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.735V7.68c0-.406.326-.735.727-.735h.695ZM12.362 10.977c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.736v-2.62c0-.407.326-.736.728-.736
h.694Z"
fill=
"currentColor"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M1
5.894 4.213a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 5 10.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 25 19.935v-9.87c0-.766-.428-1.466-1.106-1.808l-8-4.044ZM7 10
.065l8-4.043 8 4.043v9.87l-8 4.043-8-4.043v-9.87Z"
fill=
"currentColor"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M1
2.894 1.213a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 2 7.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 22 16.935v-9.87c0-.766-.428-1.466-1.106-1.808l-8-4.044ZM4 7
.065l8-4.043 8 4.043v9.87l-8 4.043-8-4.043v-9.87Z"
fill=
"currentColor"
/>
</svg>
</svg>
icons/merits_slim.svg
0 → 100644
View file @
3ad15d1d
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 30 30"
fill=
"none"
>
<path
d=
"M13.229 9.946c.401 0 .727.329.727.735v.636a.731.731 0 0 1-.727.735h-.353a.731.731 0 0 0-.727.735v6.532a.731.731 0 0 1-.727.735h-.695A.731.731 0 0 1 10 19.32v-6.532c0-.406.326-.735.727-.735h.352c.402 0 .728-.33.728-.736v-.635c0-.406.325-.735.727-.735h.694Z"
fill=
"currentColor"
/>
<path
d=
"M13.229 9.946c.401 0 .727.329.727.735v.636a.731.731 0 0 1-.727.735h-.353a.731.731 0 0 0-.727.735v6.532a.731.731 0 0 1-.727.735h-.695A.731.731 0 0 1 10 19.32v-6.532c0-.406.326-.735.727-.735h.352c.402 0 .728-.33.728-.736v-.635c0-.406.325-.735.727-.735h.694Z"
fill=
"#000"
fill-opacity=
".2"
/>
<path
d=
"M17.54 9.946c.402 0 .728.329.728.735v.636c0 .405.326.735.727.735h.278c.401 0 .727.329.727.735v6.532a.731.731 0 0 1-.727.735h-.695a.731.731 0 0 1-.727-.735v-6.532a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.736v-.635c0-.406.326-.735.727-.735h.695Z"
fill=
"currentColor"
/>
<path
d=
"M17.54 9.946c.402 0 .728.329.728.735v.636c0 .405.326.735.727.735h.278c.401 0 .727.329.727.735v6.532a.731.731 0 0 1-.727.735h-.695a.731.731 0 0 1-.727-.735v-6.532a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.736v-.635c0-.406.326-.735.727-.735h.695Z"
fill=
"#000"
fill-opacity=
".2"
/>
<path
d=
"M15.362 13.977c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.735v-2.622c0-.406.326-.735.728-.735h.694Z"
fill=
"currentColor"
/>
<path
d=
"M15.362 13.977c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.735v-2.622c0-.406.326-.735.728-.735h.694Z"
fill=
"#000"
fill-opacity=
".2"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M15.894 4.213a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 5 10.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 25 19.935v-9.87c0-.766-.428-1.466-1.106-1.808l-8-4.044ZM7 10.065l8-4.043 8 4.043v9.87l-8 4.043-8-4.043v-9.87Z"
fill=
"currentColor"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M15.894 4.213a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 5 10.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 25 19.935v-9.87c0-.766-.428-1.466-1.106-1.808l-8-4.044ZM7 10.065l8-4.043 8 4.043v9.87l-8 4.043-8-4.043v-9.87Z"
fill=
"#000"
fill-opacity=
".2"
/>
</svg>
icons/merits_with_dot.svg
View file @
3ad15d1d
<svg
viewBox=
"0 0 30 30"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg
"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 24 24"
fill=
"none
"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"m1
9.133 5.85-3.239-1.637a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 5 10.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 25 19.935V11.9a5.022 5.022 0 0 1-2 0v8.035l-8 4.043-8-4.043v-9.87l8-4.043 4.123 2.083a5.02 5.02 0 0 1 .01-2.255Zm-5.177 4.83a.731.731 0 0 0-.727-.734h-.695a.731.731 0 0 0-.727.735v.636a.731.731 0 0 1-.728.735h-.352a.731.731 0 0 0-.727.735v6.532c0 .406.326.735.727.735h.695c.401 0 .727-.329.727-.735v-6.532c0-.406.326-.735.727-.735h.353c.401 0 .727-.33.727-.736v-.635Zm4.312 0a.731.731 0 0 0-.727-.734h-.695a.731.731 0 0 0-.727.735v.636c0 .406.326.735.727.735h.278c.402 0 .727.329.727.735v6.532c0 .406.326.735.727.735h.695c.401 0 .727-.329.727-.735v-6.532a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.736v-.635Zm-2.906 3.297c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.735v-2.622c0-.406.326-.735.728-.735
h.694Z"
fill=
"currentColor"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"m1
6.133 2.85-3.239-1.637a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 2 7.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 22 16.935V8.9a5.022 5.022 0 0 1-2 0v8.035l-8 4.043-8-4.043v-9.87l8-4.043 4.123 2.083a5.02 5.02 0 0 1 .01-2.255Zm-5.177 4.83a.731.731 0 0 0-.727-.734h-.695a.731.731 0 0 0-.727.735v.635a.731.731 0 0 1-.727.736h-.353A.731.731 0 0 0 7 9.787v6.532c0 .406.326.735.727.735h.695c.401 0 .727-.329.727-.735V9.787c0-.406.326-.735.727-.735h.353c.401 0 .727-.33.727-.735V7.68Zm4.312 0a.731.731 0 0 0-.727-.734h-.695a.731.731 0 0 0-.727.735v.636c0 .406.326.735.727.735h.278c.401 0 .727.329.727.735v6.532c0 .406.326.735.727.735h.695c.401 0 .727-.329.727-.735V9.787a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.736v-.635Zm-2.906 3.297c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.736v-2.62c0-.407.326-.736.728-.736
h.694Z"
fill=
"currentColor"
/>
<circle
cx=
"2
4"
cy=
"7
"
r=
"3"
fill=
"#E53E3E"
/>
<circle
cx=
"2
1"
cy=
"4
"
r=
"3"
fill=
"#E53E3E"
/>
</svg>
</svg>
icons/merits_with_dot_slim.svg
0 → 100644
View file @
3ad15d1d
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 30 30"
fill=
"none"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"m19.133 5.85-3.239-1.637a1.98 1.98 0 0 0-1.788 0l-8 4.044A2.024 2.024 0 0 0 5 10.065v9.87c0 .766.428 1.466 1.106 1.808l8 4.044a1.981 1.981 0 0 0 1.788 0l8-4.044A2.024 2.024 0 0 0 25 19.935V11.9a5.022 5.022 0 0 1-2 0v8.035l-8 4.043-8-4.043v-9.87l8-4.043 4.123 2.083a5.02 5.02 0 0 1 .01-2.255Zm-5.177 4.83a.731.731 0 0 0-.727-.734h-.695a.731.731 0 0 0-.727.735v.636a.731.731 0 0 1-.728.735h-.352a.731.731 0 0 0-.727.735v6.532c0 .406.326.735.727.735h.695c.401 0 .727-.329.727-.735v-6.532c0-.406.326-.735.727-.735h.353c.401 0 .727-.33.727-.736v-.635Zm4.312 0a.731.731 0 0 0-.727-.734h-.695a.731.731 0 0 0-.727.735v.636c0 .406.326.735.727.735h.278c.402 0 .727.329.727.735v6.532c0 .406.326.735.727.735h.695c.401 0 .727-.329.727-.735v-6.532a.731.731 0 0 0-.727-.735h-.278a.731.731 0 0 1-.727-.736v-.635Zm-2.906 3.297c.402 0 .727.33.727.735v2.622a.731.731 0 0 1-.727.735h-.694a.731.731 0 0 1-.728-.735v-2.622c0-.406.326-.735.728-.735h.694Z"
fill=
"currentColor"
/>
<circle
cx=
"24"
cy=
"7"
r=
"3"
fill=
"#E53E3E"
/>
</svg>
public/icons/name.d.ts
View file @
3ad15d1d
...
@@ -87,6 +87,8 @@
...
@@ -87,6 +87,8 @@
|
"
link
"
|
"
link
"
|
"
lock
"
|
"
lock
"
|
"
merits_colored
"
|
"
merits_colored
"
|
"
merits_slim
"
|
"
merits_with_dot_slim
"
|
"
merits_with_dot
"
|
"
merits_with_dot
"
|
"
merits
"
|
"
merits
"
|
"
minus
"
|
"
minus
"
...
...
ui/rewards/RewardsButton.tsx
View file @
3ad15d1d
...
@@ -51,11 +51,14 @@ const RewardsButton = ({ variant = 'header', size }: Props) => {
...
@@ -51,11 +51,14 @@ const RewardsButton = ({ variant = 'header', size }: Props) => {
>
>
<
IconSvg
<
IconSvg
name=
{
dailyRewardQuery
.
data
?.
available
?
'
merits_with_dot
'
:
'
merits
'
}
name=
{
dailyRewardQuery
.
data
?.
available
?
'
merits_with_dot
'
:
'
merits
'
}
boxSize=
{
size
===
'
sm
'
?
'
26px
'
:
'
28px
'
}
boxSize=
{
variant
===
'
hero
'
?
6
:
5
}
flexShrink=
{
0
}
flexShrink=
{
0
}
mx=
{
-
1
}
/>
/>
<
chakra
.
span
display=
{
{
base
:
'
none
'
,
md
:
'
inline
'
}
}
ml=
{
2
}
>
<
chakra
.
span
display=
{
{
base
:
'
none
'
,
md
:
'
inline
'
}
}
ml=
{
2
}
fontWeight=
{
apiToken
?
'
700
'
:
'
600
'
}
>
{
apiToken
?
balancesQuery
.
data
?.
total
:
'
Merits
'
}
{
apiToken
?
balancesQuery
.
data
?.
total
:
'
Merits
'
}
</
chakra
.
span
>
</
chakra
.
span
>
</
Button
>
</
Button
>
...
...
ui/rewards/RewardsNavLink.tsx
View file @
3ad15d1d
...
@@ -72,7 +72,7 @@ const RewardsNavLink = ({ isCollapsed, onClick }: Props) => {
...
@@ -72,7 +72,7 @@ const RewardsNavLink = ({ isCollapsed, onClick }: Props) => {
margin=
{
0
}
margin=
{
0
}
>
>
<
HStack
spacing=
{
0
}
overflow=
"hidden"
>
<
HStack
spacing=
{
0
}
overflow=
"hidden"
>
<
NavLinkIcon
item=
{
{
icon
:
dailyRewardQuery
.
data
?.
available
?
'
merits_with_dot
'
:
'
merits
'
}
as
NavItem
}
/>
<
NavLinkIcon
item=
{
{
icon
:
dailyRewardQuery
.
data
?.
available
?
'
merits_with_dot
_slim
'
:
'
merits_slim
'
}
as
NavItem
}
/>
<
Text
{
...
styleProps
.
textProps
}
as=
"span"
ml=
{
3
}
>
<
Text
{
...
styleProps
.
textProps
}
as=
"span"
ml=
{
3
}
>
<
span
>
<
span
>
{
balancesQuery
.
data
?.
total
?
`${ balancesQuery.data?.total } Merits`
:
'
Merits
'
}
{
balancesQuery
.
data
?.
total
?
`${ balancesQuery.data?.total } Merits`
:
'
Merits
'
}
...
...
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