Skip to content

Commit

Permalink
Merge pull request #488 from starknet-id/fix/expiry-feedback-notifica…
Browse files Browse the repository at this point in the history
…tion

fixing expiry feedback notification
  • Loading branch information
fricoben authored Nov 11, 2023
2 parents 77d1d4b + 4fd9c0a commit 18b4661
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions components/identities/identityWarnings.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { FunctionComponent } from "react";
import { getDomainWithoutStark, isSubdomain } from "../../utils/stringService";
import { isSubdomain } from "../../utils/stringService";
import { hexToDecimal } from "../../utils/feltService";
import { useAccount } from "@starknet-react/core";
import Link from "next/link";
import Notification from "../UI/notification";

type IdentityWarningsProps = {
Expand All @@ -27,16 +26,7 @@ const IdentityWarnings: FunctionComponent<IdentityWarningsProps> = ({
return isIdentityADomain ? (
<>
<Notification visible={isExpired && Boolean(address)} severity="error">
<>
This domain has expired you can buy it on the&nbsp;
<span className="underline">
<Link
href={"/search?domain=" + getDomainWithoutStark(identity?.domain)}
>
domain page
</Link>
</span>
</>
This domain has expired. You can renew it by clicking RENEW YOUR DOMAIN.
</Notification>
<Notification visible={showWarning} severity="error">
<>&nbsp;Be careful this domain is not linked to your current address.</>
Expand Down

1 comment on commit 18b4661

@vercel
Copy link

@vercel vercel bot commented on 18b4661 Nov 11, 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.