Rename vote react hooks
This commit is contained in:
parent
59b56a0650
commit
9fc76d0f06
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
|
||||
"@status-waku-voting/voting-hooks": "^0.1.0",
|
||||
"@dappconnect/vote-sdk-react-hooks": "^0.1.0",
|
||||
"@dappconnect/vote-poll-sdk-react-components": "^0.1.0",
|
||||
"ethers": "^5.4.4",
|
||||
"humanize-duration": "^3.27.0",
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Theme } from '@dappconnect/vote-poll-sdk-react-components'
|
|||
import { ProposalInfo } from './ProposalInfo'
|
||||
import { ProposalVote } from './ProposalVoteCard/ProposalVote'
|
||||
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
|
||||
import { useVotingRoom } from '@status-waku-voting/voting-hooks'
|
||||
import { useVotingRoom } from '@dappconnect/vote-sdk-react-hooks'
|
||||
import { VoteModal, VoteModalProps } from './VoteModal/VoteModal'
|
||||
import { useRefMobileVersion } from '@dappconnect/vote-poll-sdk-react-components'
|
||||
import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType'
|
||||
|
|
|
@ -7,7 +7,7 @@ import { VoteChart } from '../ProposalVoteCard/VoteChart'
|
|||
import { ProposalInfo } from '../ProposalInfo'
|
||||
import { VotePropose } from '../VotePropose'
|
||||
import { VotesBtns } from '../ProposalVoteCard/ProposalVote'
|
||||
import { useVotingRoom } from '@status-waku-voting/voting-hooks'
|
||||
import { useVotingRoom } from '@dappconnect/vote-sdk-react-hooks'
|
||||
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
|
||||
import { BigNumber } from 'ethers'
|
||||
interface VotingRoomMobileProps {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"dependencies": {
|
||||
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
|
||||
"@dappconnect/vote-sdk-react-components": "^0.1.0",
|
||||
"@status-waku-voting/voting-hooks": "^0.1.0",
|
||||
"@dappconnect/vote-sdk-react-hooks": "^0.1.0",
|
||||
"@dappconnect/vote-poll-sdk-react-components": "^0.1.0",
|
||||
"@usedapp/core": "^0.4.7",
|
||||
"ethers": "^5.4.4",
|
||||
|
|
|
@ -11,7 +11,7 @@ import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
|
|||
import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components'
|
||||
import { useEthers } from '@usedapp/core'
|
||||
import { Modal, Networks, useMobileVersion, Theme } from '@dappconnect/vote-poll-sdk-react-components'
|
||||
import { useVotingRoomsId } from '@status-waku-voting/voting-hooks'
|
||||
import { useVotingRoomsId } from '@dappconnect/vote-sdk-react-hooks'
|
||||
import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType'
|
||||
import { useHistory } from 'react-router'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useRef } from 'react'
|
||||
import { useWakuVoting } from '@status-waku-voting/voting-hooks'
|
||||
import { useWakuVoting } from '@dappconnect/vote-sdk-react-hooks'
|
||||
import { VotingMobile } from './components/VotingMobile'
|
||||
import { Voting } from './components/Voting'
|
||||
import { TopBar, GlobalStyle, useMobileVersion } from '@dappconnect/vote-poll-sdk-react-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@status-waku-voting/voting-hooks",
|
||||
"name": "@dappconnect/vote-sdk-react-hooks",
|
||||
"version": "0.1.0",
|
||||
"main": "dist/cjs/src/index.js",
|
||||
"module": "dist/esm/src/index.js",
|
||||
|
|
Loading…
Reference in New Issue