From 9fc76d0f062bbeb0b44b4f094169eaffc60b8bfb Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:55:33 +1100 Subject: [PATCH] Rename vote react hooks --- packages/voting-components/package.json | 2 +- packages/voting-components/src/components/VotingRoomCard.tsx | 2 +- .../src/components/mobile/VotingRoomMobile.tsx | 2 +- packages/voting-example/package.json | 2 +- packages/voting-example/src/components/Voting.tsx | 2 +- packages/voting-example/src/index.tsx | 2 +- packages/voting-hooks/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/voting-components/package.json b/packages/voting-components/package.json index de7d79c..6a3bb71 100644 --- a/packages/voting-components/package.json +++ b/packages/voting-components/package.json @@ -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", diff --git a/packages/voting-components/src/components/VotingRoomCard.tsx b/packages/voting-components/src/components/VotingRoomCard.tsx index 05de115..5a6a9d3 100644 --- a/packages/voting-components/src/components/VotingRoomCard.tsx +++ b/packages/voting-components/src/components/VotingRoomCard.tsx @@ -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' diff --git a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx b/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx index 060c67a..998d968 100644 --- a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx +++ b/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx @@ -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 { diff --git a/packages/voting-example/package.json b/packages/voting-example/package.json index 6e44773..c05d03b 100644 --- a/packages/voting-example/package.json +++ b/packages/voting-example/package.json @@ -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", diff --git a/packages/voting-example/src/components/Voting.tsx b/packages/voting-example/src/components/Voting.tsx index b46245c..2a94d86 100644 --- a/packages/voting-example/src/components/Voting.tsx +++ b/packages/voting-example/src/components/Voting.tsx @@ -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' diff --git a/packages/voting-example/src/index.tsx b/packages/voting-example/src/index.tsx index 04324b8..53e8bbf 100644 --- a/packages/voting-example/src/index.tsx +++ b/packages/voting-example/src/index.tsx @@ -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' diff --git a/packages/voting-hooks/package.json b/packages/voting-hooks/package.json index f0a4845..1e2f5f7 100644 --- a/packages/voting-hooks/package.json +++ b/packages/voting-hooks/package.json @@ -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",