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
25f15c05
Commit
25f15c05
authored
Oct 30, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace AvailableSoonLabel with Tag
parent
40c66398
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
23 deletions
+2
-23
AvailableSoonLabel.tsx
ui/rewards/AvailableSoonLabel.tsx
+0
-19
RewardsDashboardCard.tsx
ui/rewards/RewardsDashboardCard.tsx
+2
-4
No files found.
ui/rewards/AvailableSoonLabel.tsx
deleted
100644 → 0
View file @
40c66398
import
{
Flex
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
const
AvailableSoonLabel
=
()
=>
(
<
Flex
px=
{
1
}
borderRadius=
"sm"
backgroundColor=
{
useColorModeValue
(
'
blue.50
'
,
'
blue.800
'
)
}
color=
{
useColorModeValue
(
'
blue.500
'
,
'
blue.100
'
)
}
fontSize=
"sm"
fontWeight=
"500"
h=
{
6
}
alignItems=
"center"
>
Available soon
</
Flex
>
);
export
default
AvailableSoonLabel
;
ui/rewards/RewardsDashboardCard.tsx
View file @
25f15c05
import
{
Flex
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Text
,
useColorModeValue
,
Tag
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
AvailableSoonLabel
from
'
./AvailableSoonLabel
'
;
type
Props
=
{
type
Props
=
{
title
?:
string
;
title
?:
string
;
description
:
string
|
React
.
ReactNode
;
description
:
string
|
React
.
ReactNode
;
...
@@ -39,7 +37,7 @@ const RewardsDashboardCard = ({
...
@@ -39,7 +37,7 @@ const RewardsDashboardCard = ({
{
title
&&
(
{
title
&&
(
<
Flex
alignItems=
"center"
gap=
{
2
}
>
<
Flex
alignItems=
"center"
gap=
{
2
}
>
<
Text
fontSize=
{
{
base
:
'
md
'
,
md
:
'
lg
'
}
}
fontWeight=
"500"
>
{
title
}
</
Text
>
<
Text
fontSize=
{
{
base
:
'
md
'
,
md
:
'
lg
'
}
}
fontWeight=
"500"
>
{
title
}
</
Text
>
{
availableSoon
&&
<
AvailableSoonLabel
/
>
}
{
availableSoon
&&
<
Tag
colorScheme=
"blue"
>
Available soon
</
Tag
>
}
</
Flex
>
</
Flex
>
)
}
)
}
<
Text
as=
"div"
fontSize=
"sm"
>
<
Text
as=
"div"
fontSize=
"sm"
>
...
...
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