mirror of
https://github.com/status-im/dappconnect-voting-sdk.git
synced 2025-01-09 10:32:19 +00:00
Rename vote react hooks
This commit is contained in:
parent
59b56a0650
commit
9fc76d0f06
@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
|
"@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",
|
"@dappconnect/vote-poll-sdk-react-components": "^0.1.0",
|
||||||
"ethers": "^5.4.4",
|
"ethers": "^5.4.4",
|
||||||
"humanize-duration": "^3.27.0",
|
"humanize-duration": "^3.27.0",
|
||||||
|
@ -4,7 +4,7 @@ import { Theme } from '@dappconnect/vote-poll-sdk-react-components'
|
|||||||
import { ProposalInfo } from './ProposalInfo'
|
import { ProposalInfo } from './ProposalInfo'
|
||||||
import { ProposalVote } from './ProposalVoteCard/ProposalVote'
|
import { ProposalVote } from './ProposalVoteCard/ProposalVote'
|
||||||
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
|
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 { VoteModal, VoteModalProps } from './VoteModal/VoteModal'
|
||||||
import { useRefMobileVersion } from '@dappconnect/vote-poll-sdk-react-components'
|
import { useRefMobileVersion } from '@dappconnect/vote-poll-sdk-react-components'
|
||||||
import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType'
|
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 { ProposalInfo } from '../ProposalInfo'
|
||||||
import { VotePropose } from '../VotePropose'
|
import { VotePropose } from '../VotePropose'
|
||||||
import { VotesBtns } from '../ProposalVoteCard/ProposalVote'
|
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 { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
|
||||||
import { BigNumber } from 'ethers'
|
import { BigNumber } from 'ethers'
|
||||||
interface VotingRoomMobileProps {
|
interface VotingRoomMobileProps {
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
|
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
|
||||||
"@dappconnect/vote-sdk-react-components": "^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",
|
"@dappconnect/vote-poll-sdk-react-components": "^0.1.0",
|
||||||
"@usedapp/core": "^0.4.7",
|
"@usedapp/core": "^0.4.7",
|
||||||
"ethers": "^5.4.4",
|
"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 { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components'
|
||||||
import { useEthers } from '@usedapp/core'
|
import { useEthers } from '@usedapp/core'
|
||||||
import { Modal, Networks, useMobileVersion, Theme } from '@dappconnect/vote-poll-sdk-react-components'
|
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 { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType'
|
||||||
import { useHistory } from 'react-router'
|
import { useHistory } from 'react-router'
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useRef } from 'react'
|
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 { VotingMobile } from './components/VotingMobile'
|
||||||
import { Voting } from './components/Voting'
|
import { Voting } from './components/Voting'
|
||||||
import { TopBar, GlobalStyle, useMobileVersion } from '@dappconnect/vote-poll-sdk-react-components'
|
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",
|
"version": "0.1.0",
|
||||||
"main": "dist/cjs/src/index.js",
|
"main": "dist/cjs/src/index.js",
|
||||||
"module": "dist/esm/src/index.js",
|
"module": "dist/esm/src/index.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user