-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bos-components): add charts and statistics
- Loading branch information
Showing
11 changed files
with
589 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const AddressesChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return ( | ||
<VmComponent src={components?.charts} props={{ chart: 'addresses' }} /> | ||
); | ||
}; | ||
|
||
export default AddressesChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const BlocksChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return <VmComponent src={components?.charts} props={{ chart: 'blocks' }} />; | ||
}; | ||
|
||
export default BlocksChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const Charts = () => { | ||
const components = useBosComponents(); | ||
|
||
return <VmComponent src={components?.charts} />; | ||
}; | ||
|
||
export default Charts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const MarketCapChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return ( | ||
<VmComponent src={components?.charts} props={{ chart: 'market-cap' }} /> | ||
); | ||
}; | ||
|
||
export default MarketCapChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const NearPriceChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return ( | ||
<VmComponent src={components?.charts} props={{ chart: 'near-price' }} /> | ||
); | ||
}; | ||
|
||
export default NearPriceChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const NearSupplyChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return ( | ||
<VmComponent src={components?.charts} props={{ chart: 'near-supply' }} /> | ||
); | ||
}; | ||
|
||
export default NearSupplyChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const TxnFeeChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return <VmComponent src={components?.charts} props={{ chart: 'txn-fee' }} />; | ||
}; | ||
|
||
export default TxnFeeChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const TxnVolumeChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return ( | ||
<VmComponent src={components?.charts} props={{ chart: 'txn-volume' }} /> | ||
); | ||
}; | ||
|
||
export default TxnVolumeChart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { VmComponent } from '@/components/vm/VmComponent'; | ||
import { useBosComponents } from '@/hooks/useBosComponents'; | ||
|
||
const TxnsChart = () => { | ||
const components = useBosComponents(); | ||
|
||
return <VmComponent src={components?.charts} props={{ chart: 'txns' }} />; | ||
}; | ||
|
||
export default TxnsChart; |
Oops, something went wrong.