From 415be0a8ccd987b79f8a6f25b1980c3cc02440dc Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 4 Jan 2022 11:49:42 +1100 Subject: [PATCH] Remove dupe terminology --- .../mainnet-poll/src/components/{WakuPolling.tsx => Poll.tsx} | 2 +- examples/mainnet-poll/src/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename examples/mainnet-poll/src/components/{WakuPolling.tsx => Poll.tsx} (96%) diff --git a/examples/mainnet-poll/src/components/WakuPolling.tsx b/examples/mainnet-poll/src/components/Poll.tsx similarity index 96% rename from examples/mainnet-poll/src/components/WakuPolling.tsx rename to examples/mainnet-poll/src/components/Poll.tsx index a4831a9..f93195d 100644 --- a/examples/mainnet-poll/src/components/WakuPolling.tsx +++ b/examples/mainnet-poll/src/components/Poll.tsx @@ -15,7 +15,7 @@ type WakuPollingProps = { tokenAddress: string } -export function WakuPolling({ appName, signer, theme, tokenAddress }: WakuPollingProps) { +export function Poll({ appName, signer, theme, tokenAddress }: WakuPollingProps) { const { activateBrowserWallet, account, library, chainId } = useEthers() const config = useConfig() const [showPollCreation, setShowPollCreation] = useState(false) diff --git a/examples/mainnet-poll/src/index.tsx b/examples/mainnet-poll/src/index.tsx index c2aedde..94a4eab 100644 --- a/examples/mainnet-poll/src/index.tsx +++ b/examples/mainnet-poll/src/index.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react' import styled from 'styled-components' import { DAppProvider, ChainId, useEthers } from '@usedapp/core' import { DEFAULT_CONFIG } from '@usedapp/core/dist/cjs/src/model/config/default' -import { WakuPolling } from './components/WakuPolling' +import { Poll } from './components/Poll' import { TopBar, GlobalStyle } from '@waku/vote-poll-sdk-react-components' import pollingIcon from './assets/images/pollingIcon.png' import { JsonRpcSigner } from '@ethersproject/providers' @@ -50,7 +50,7 @@ export function PollPage({ tokenAddress }: { tokenAddress: string }) { account={account} deactivate={deactivate} /> - + ) }