Skip to content

Commit

Permalink
Merge pull request #196 from starknet-id/fix/btn_achievements
Browse files Browse the repository at this point in the history
fix: btn start achievement opening a browser window
  • Loading branch information
fricoben authored Oct 4, 2023
2 parents 2b9239a + d84272a commit 0f6a4a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/lands/land.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { Scene } from "./scene";
import { memberSince } from "../../utils/profile";
import styles from "../../styles/profile.module.css";
import landStyles from "../../styles/components/land.module.css";
import Button from "../UI/button";
import btnStyles from "../../styles/components/button.module.css";
import { SoloBuildings, StarkFighterBuildings } from "../../constants/nft";
import { AchievementsDocument } from "../../types/backTypes";
import Link from "next/link";

type LandProps = {
address: string;
Expand Down Expand Up @@ -172,9 +173,11 @@ export const Land = ({
</h2>
{isOwner ? (
<div className="text-background ml-5 mr-5">
<Button onClick={() => window.open("https://starknet.quest")}>
Start Achievements
</Button>
<Link href="/">
<button className={btnStyles["nq-button"]}>
Start Achievements
</button>
</Link>
</div>
) : null}
</div>
Expand Down

1 comment on commit 0f6a4a9

@vercel
Copy link

@vercel vercel bot commented on 0f6a4a9 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.