Skip to content

Commit

Permalink
changed name from request public key to get public key for ease of un…
Browse files Browse the repository at this point in the history
…derstanding
  • Loading branch information
leonacostaok committed Nov 8, 2023
1 parent 91dda98 commit 34848af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Text} from "./Text";
import {Heading} from "./Heading";
import {Button} from "./Button";

export function RequestPublicKey({ isActive }: { isActive: boolean }) {
export function GetPublicKey({ isActive }: { isActive: boolean }) {
const { account, provider } = useWeb3React();
const [publicKey, setPublicKey] = useState<string | null>(null);
const [copied, setCopied] = useState(false)
Expand Down
11 changes: 5 additions & 6 deletions example/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useWeb3React } from "@web3-react/core";
import { Decrypt } from "components/Decrypt";
import { Encrypt } from "components/Encrypt";
import { RequestPublicKey } from "components/RequestPublicKey";
import { GetPublicKey } from "components/GetPublicKey";
import { Tab } from "components/Tab";
import React, { useState } from "react";
import styled, { css } from "styled-components";
Expand All @@ -10,7 +9,7 @@ import {HowTo} from "../components/HowTo";
export enum TabOptions {
ENCRYPT,
DECRYPT,
REQUEST_PUBLIC_KEY,
GET_PUBLIC_KEY,
HOW_TO
}

Expand All @@ -27,9 +26,9 @@ const tabsList: TabType[] = [
content: HowTo,
},
{
tab: TabOptions.REQUEST_PUBLIC_KEY,
name: "Request Public Key",
content: RequestPublicKey,
tab: TabOptions.GET_PUBLIC_KEY,
name: "Get Public Key",
content: GetPublicKey,
},
{ tab: TabOptions.ENCRYPT, name: "Encrypt", content: Encrypt },
{ tab: TabOptions.DECRYPT, name: "Decrypt", content: Decrypt },
Expand Down

0 comments on commit 34848af

Please sign in to comment.