Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Block Explorer UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
Block Explorer UI
Commits
24d230a7
Commit
24d230a7
authored
2 weeks ago
by
Lukas
Committed by
mcfarhat
2 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove hive price chart from main page container
parent
d484b7b7
No related branches found
No related tags found
1 merge request
!599
Lbudginas/#493 hive price chart
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pages/index.tsx
+0
-21
0 additions, 21 deletions
pages/index.tsx
with
0 additions
and
21 deletions
pages/index.tsx
+
0
−
21
View file @
24d230a7
...
...
@@ -14,7 +14,6 @@ import useDynamicGlobal from "@/hooks/api/homePage/useDynamicGlobal";
import
{
config
}
from
"
@/Config
"
;
import
useHeadBlock
from
"
@/hooks/api/homePage/useHeadBlock
"
;
import
useBlockOperations
from
"
@/hooks/api/common/useBlockOperations
"
;
import
{
useUserSettingsContext
}
from
"
@/contexts/UserSettingsContext
"
;
import
{
Card
,
CardContent
,
...
...
@@ -24,15 +23,6 @@ import {
}
from
"
@/components/ui/card
"
;
import
{
useHeadBlockNumber
}
from
"
@/contexts/HeadBlockContext
"
;
import
{
useTheme
}
from
"
@/contexts/ThemeContext
"
;
import
useMarketHistory
from
"
@/hooks/common/useMarketHistory
"
;
import
MarketHistoryChart
from
"
@/components/home/MarketHistoryChart
"
;
import
moment
from
"
moment
"
;
const
MARKET_HISTORY_INTERVAL
=
86400
;
// 1 day
const
CURRENT_TIME
=
moment
().
format
(
"
YYYY-MM-DDTHH:mm:ss
"
);
const
MARKET_HISTORY_TIME_PERIOD
=
moment
()
.
subtract
(
30
,
"
days
"
)
.
format
(
"
YYYY-MM-DDTHH:mm:ss
"
);
export
default
function
Home
()
{
const
{
theme
}
=
useTheme
();
...
...
@@ -48,12 +38,6 @@ export default function Home() {
const
headBlockData
=
useHeadBlock
(
headBlockNum
).
headBlockData
;
const
{
blockOperations
}
=
useBlockOperations
(
headBlockNum
||
0
);
const
{
marketHistory
,
isMarketHistoryLoading
}
=
useMarketHistory
(
MARKET_HISTORY_INTERVAL
,
MARKET_HISTORY_TIME_PERIOD
,
CURRENT_TIME
);
// Filter operations that have a trx_id
const
trxOperations
=
blockOperations
?.
operations_result
.
filter
(
(
operation
)
=>
operation
.
trx_id
...
...
@@ -87,11 +71,6 @@ export default function Home() {
blockDetails
=
{
headBlockData
}
opcount
=
{
opcount
}
/>
<
MarketHistoryChart
data
=
{
marketHistory
}
isLoading
=
{
isMarketHistoryLoading
}
strokeColor
=
{
strokeColor
}
/>
</
div
>
<
div
className
=
"col-span-4 md:col-span-3 lg:col-span-2"
>
<
LastBlocksWidget
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment