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
4889222d
Commit
4889222d
authored
Oct 31, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge fixes
parent
1ca78283
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
BlocksTable.tsx
ui/blocks/BlocksTable.tsx
+1
-1
TxsContent.tsx
ui/txs/TxsContent.tsx
+1
-1
TxsHeader.tsx
ui/txs/TxsHeader.tsx
+7
-6
No files found.
ui/blocks/BlocksTable.tsx
View file @
4889222d
...
...
@@ -16,7 +16,7 @@ interface Props {
const
BlocksTable
=
({
data
}:
Props
)
=>
{
return
(
<
Table
variant=
"simple"
minWidth=
"1040px"
size=
"md"
fontWeight=
{
500
}
mt=
{
8
}
>
<
Table
variant=
"simple"
minWidth=
"1040px"
size=
"md"
fontWeight=
{
500
}
mt=
{
8
}
>
<
Thead
>
<
Tr
>
<
Th
width=
"125px"
>
Block
</
Th
>
...
...
ui/txs/TxsContent.tsx
View file @
4889222d
...
...
@@ -93,7 +93,7 @@ const TxsContent = ({
return
(
<>
{
showDescription
&&
<
Box
mb=
{
12
}
>
Only the first 10,000 elements are displayed
</
Box
>
}
<
TxsHeader
sorting=
{
sorting
}
paginationProps=
{
paginationProps
}
/>
<
TxsHeader
sorting=
{
sorting
}
setSorting=
{
setSorting
}
paginationProps=
{
paginationProps
}
/>
{
content
}
</>
);
...
...
ui/txs/TxsHeader.tsx
View file @
4889222d
...
...
@@ -9,19 +9,20 @@ import useIsMobile from 'lib/hooks/useIsMobile';
import
ScrollDirectionContext
from
'
ui/ScrollDirectionContext
'
;
import
Pagination
from
'
ui/shared/Pagination
'
;
import
type
{
Props
as
PaginationProps
}
from
'
ui/shared/Pagination
'
;
import
SortButton
from
'
ui/shared/SortButton
'
;
import
TxsSorting
from
'
ui/txs/TxsSorting
'
;
// import TxsFilters from './TxsFilters';
type
Props
=
{
sorting
:
Sort
;
setSorting
:
(
val
:
Sort
|
((
val
:
Sort
)
=>
Sort
))
=>
void
;
paginationProps
:
PaginationProps
;
}
const
TOP_UP
=
106
;
const
TOP_DOWN
=
0
;
const
TxsHeader
=
({
sorting
,
paginationProps
}:
Props
)
=>
{
const
TxsHeader
=
({
sorting
,
setSorting
,
paginationProps
}:
Props
)
=>
{
const
[
isSticky
,
setIsSticky
]
=
React
.
useState
(
false
);
const
ref
=
React
.
useRef
<
HTMLDivElement
>
(
null
);
...
...
@@ -79,10 +80,10 @@ const TxsHeader = ({ sorting, paginationProps }: Props) => {
appliedFiltersNum={ 0 }
/> */
}
{
isMobile
&&
(
<
SortButton
// eslint-disable-next-line react/jsx-no-bind
handleSort=
{
()
=>
{}
}
isSortActive=
{
Boolean
(
sorting
)
}
<
TxsSorting
isActive=
{
Boolean
(
sorting
)
}
setSorting=
{
setSorting
}
sorting=
{
sorting
}
/>
)
}
{
/* api is not implemented */
}
...
...
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