Skip to content

Commit

Permalink
Add comments for example of hook
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Mar 15, 2024
1 parent 6ade432 commit 7ad2a5c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,19 @@ export const EcotoneForkWarningMessage = () => {

/**
* Example of how to use hook:
* import { useEcotoneForkCountdownProgress } = '@/components/Maintenance/Events/EcotoneForkUpgrade'
*
* const {
isEcotoneForkUpgradePending,
isCurrentChainDisabled: isEcotoneUpgradeChainsDisabled,
EcotoneForkCountdownProgressBar,
} = useEcotoneForkCountdownProgress()
In JSX, render the component:
<div>
{EcotoneForkCountdownProgressBar}
</div>
*/
export const useEcotoneForkCountdownProgress = () => {
const { fromChainId, toChainId } = useBridgeState()
Expand Down

0 comments on commit 7ad2a5c

Please sign in to comment.