Skip to content

Commit

Permalink
♻️ reviewing PR due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Burg committed Apr 4, 2024
1 parent 3ddcecb commit 5d60dbe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 43 deletions.
1 change: 0 additions & 1 deletion components/Alias.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const Alias = ({
aliasesCtx.getAlias(address, length).then(setAlias);
}, [address, aliasesCtx, length]);

console;
return (
<Copy value={address} text="Copy address" disabled={disabled}>
<span className={className} title={address}>
Expand Down
23 changes: 4 additions & 19 deletions components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import useIsOwner from "../utils/useIsOwner";
import { signers, toStorage } from "../versioned/apis";
import { hasTzip27Support } from "../versioned/util";
import Alias from "./Alias";
import Copy from "./Copy";
import Tooltip from "./Tooltip";

type selectItemProps = {
Expand Down Expand Up @@ -69,19 +68,7 @@ const SelectedItem = ({
<p className="text-xl text-white">{name}</p>
<p>{threshold}</p>
</div>
{/* <Copy value={address ?? ""} disabled={disableCopy}>
<span className="mt-1 text-sm text-zinc-400" data-name="copy">
{!address ? (
<span>...</span>
) : (
`${address.substring(0, 5)}...${address.substring(
address.length - 5
)}`
)}
</span>
</Copy> */}

<Alias address={address} disabled />
<Alias address={address ?? ""} disabled={disableCopy} />
<div className="mt-2 flex items-center justify-between">
<Tooltip text={formattedBalance.toString() + " Tez"}>
<p className="text-lg">{formattedBalance.toFixed(2)} Tez</p>
Expand Down Expand Up @@ -259,11 +246,9 @@ const Sidebar = ({
className="radix-disabled:opacity-50 relative flex select-none items-center rounded-md px-8 py-2 text-sm font-medium text-zinc-300 focus:bg-zinc-800 focus:bg-zinc-900 focus:outline-none"
>
<Select.ItemText>
{/* <p className="text-xl text-white">
{state.aliases[address]}
</p> */}

<Alias address={address} />
<p className="text-xl text-white">
<Alias address={address} />
</p>

<p className="mt-1 text-sm text-zinc-400">
{address.substring(0, 5)}...
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "env-cmd -f ./config/.env next dev",
"dev": "env-cmd -f ./config/.env.dev next dev",
"sandbox": "env-cmd -f ./config/.env.sandbox next dev --port 4000",
"build": "next build",
"start": "next start --port 80",
Expand Down
22 changes: 0 additions & 22 deletions utils/getTzktAlias.ts

This file was deleted.

0 comments on commit 5d60dbe

Please sign in to comment.