Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESYTD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Дияр Амангельды
ESYTD
Commits
135dd26d
Commit
135dd26d
authored
Jul 24, 2024
by
Merekeyev Dias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added cool tag in status column
parent
036c47ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/pages/HomePage/HomePage.tsx
src/pages/HomePage/HomePage.tsx
+5
-2
No files found.
src/pages/HomePage/HomePage.tsx
View file @
135dd26d
import
React
from
'
react
'
;
import
{
useNavigate
}
from
'
react-router
'
;
import
{
MaterialSymbol
}
from
'
react-material-symbols
'
;
import
{
Button
,
Pagination
,
Space
,
Spin
,
Table
}
from
'
antd
'
;
import
{
Button
,
Pagination
,
Space
,
Spin
,
Table
,
Tag
}
from
'
antd
'
;
import
type
{
TableProps
}
from
'
antd
'
;
import
'
./Homepage.css
'
;
import
{
useGetOrganizationsQuery
}
from
'
../../features/api/apiSlice
'
;
...
...
@@ -46,9 +46,12 @@ const columns: TableProps<DataType>['columns'] = [
dataIndex
:
"
status
"
,
key
:
"
status
"
,
render
:
(
_
,
record
)
=>
{
let
color
=
record
.
status
==
'
0
'
?
'
red
'
:
record
.
status
==
'
1
'
?
'
processing
'
:
'
green
'
;
return
(
<
p
>
<
Tag
color=
{
color
}
style=
{
{
fontSize
:
'
14px
'
}
}
>
{
record
.
status
==
'
0
'
?
'
удален
'
:
record
.
status
==
'
1
'
?
'
заблокирован
'
:
'
активен
'
}
</
Tag
>
</
p
>
)
}
...
...
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