mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
* reorder UI * refactor with new PoolSection component * move all the things * layout tweaks * fix pool data without wallet * fix undefined user pool share * fix max remove calculation * make conversion use our decimals definition
18 lines
455 B
TypeScript
18 lines
455 B
TypeScript
import { usePool } from '@context/Pool'
|
|
import Button from '@shared/atoms/Button'
|
|
import React from 'react'
|
|
import styles from './Update.module.css'
|
|
|
|
export default function Update() {
|
|
const { fetchAllData } = usePool()
|
|
|
|
return (
|
|
<div className={styles.update}>
|
|
<Button style="text" size="small" onClick={() => fetchAllData()}>
|
|
Refresh Data
|
|
</Button>
|
|
{/* Fetching every {refreshInterval / 1000} sec. */}
|
|
</div>
|
|
)
|
|
}
|