Skip to content

Commit

Permalink
Remove renounce button
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall2112 committed Jan 10, 2023
1 parent d0bd50d commit 703483a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apps/dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"prepare": "yarn typechain:compile && yarn typechain:copy",
"typechain:compile": "cd ../../protocol && yarn compile --force",
"typechain:copy": "cp -r ../../protocol/typechain ./src/types/typechain",
"typechain:copy": "cp -r ../../protocol/typechain ./src/types",
"dev": "vite",
"compile": "tsc",
"vite:build": "vite build",
Expand Down
15 changes: 1 addition & 14 deletions apps/dapp/src/components/Pages/Nexus/Relic/RelicStatsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,7 @@ const RelicStatsPanel: FC<{ relic: RelicData }> = (props) => {
const rarityInfo = <RelicStatsItem label="Rarity" element={<RarityLabel rarity={rarity} />} />;
const poapInfo = <RelicStatsItem label="Shards" element={<span>{items.reduce((n, i) => n + i.count, 0)}</span>} />;
const xpInfo = <RelicStatsItem label="XP" element={<span>{xp.toNumber()}</span>} />;
const renounceBtn = (
<Button
isSmall
label="Renounce Relic"
onClick={async () => {
await renounceRelic(id);
navigate(`..`);
}}
/>
);

if (componentWidth > 700) {
return (
<RelicStatsContainer ref={containerRef}>
Expand All @@ -73,8 +64,6 @@ const RelicStatsPanel: FC<{ relic: RelicData }> = (props) => {
<RelicStatsColumn>
{rarityInfo}
{xpInfo}
<br />
{renounceBtn}
</RelicStatsColumn>
</RelicStatsContainer>
);
Expand All @@ -87,8 +76,6 @@ const RelicStatsPanel: FC<{ relic: RelicData }> = (props) => {
{rarityInfo}
{poapInfo}
{xpInfo}
<br />
{renounceBtn}
</RelicStatsColumn>
</RelicStatsContainer>
);
Expand Down

0 comments on commit 703483a

Please sign in to comment.