Skip to content

Commit 21236a1

Browse files
authoredNov 4, 2024··
Merge pull request #1733 from kleros/chore/remove-unused-libs-and-update-contact-support-link
chore(web): remove-unused-libs-and-update-contact-support-link
2 parents b6b7c17 + 9e58743 commit 21236a1

File tree

3 files changed

+28
-1801
lines changed

3 files changed

+28
-1801
lines changed
 

‎web/package.json

-7
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
"@kleros/kleros-v2-eslint-config": "workspace:^",
5353
"@kleros/kleros-v2-prettier-config": "workspace:^",
5454
"@kleros/kleros-v2-tsconfig": "workspace:^",
55-
"@netlify/functions": "^1.6.0",
56-
"@types/amqplib": "^0.10.4",
5755
"@types/busboy": "^1.5.3",
5856
"@types/react": "18.2.0",
5957
"@types/react-dom": "^18.2.18",
@@ -76,20 +74,16 @@
7674
},
7775
"dependencies": {
7876
"@cyntler/react-doc-viewer": "^1.16.3",
79-
"@filebase/client": "^0.0.5",
8077
"@kleros/kleros-sdk": "workspace:^",
8178
"@kleros/ui-components-library": "^2.15.0",
8279
"@lifi/wallet-management": "^3.0.3",
8380
"@lifi/widget": "^3.2.0",
84-
"@middy/core": "^5.3.2",
85-
"@middy/http-json-body-parser": "^5.3.2",
8681
"@sentry/react": "^7.93.0",
8782
"@sentry/tracing": "^7.93.0",
8883
"@tanstack/react-query": "^5.40.1",
8984
"@types/react-modal": "^3.16.3",
9085
"@web3modal/wagmi": "^4.1.10",
9186
"@yornaath/batshit": "^0.9.0",
92-
"amqplib": "^0.10.3",
9387
"chart.js": "^3.9.1",
9488
"chartjs-adapter-moment": "^1.0.1",
9589
"chartjs-plugin-datalabels": "^2.2.0",
@@ -114,7 +108,6 @@
114108
"react-scripts": "^5.0.1",
115109
"react-toastify": "^9.1.3",
116110
"react-use": "^17.4.3",
117-
"siwe": "^2.3.2",
118111
"styled-components": "^5.3.11",
119112
"viem": "^2.21.35",
120113
"wagmi": "^2.12.25"

‎web/src/pages/Settings/EmailConfirmation/index.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useMemo, useState } from "react";
22
import styled, { css } from "styled-components";
33

4-
import { useNavigate, useSearchParams } from "react-router-dom";
4+
import { Link, useSearchParams } from "react-router-dom";
55
import { isAddress } from "viem";
66

77
import { Button } from "@kleros/ui-components-library";
@@ -98,15 +98,15 @@ const messageConfigs = {
9898
headerMsg: "Invalid Link!",
9999
subtitleMsg: "Oops, seems like you followed an invalid link.",
100100
buttonMsg: "Contact Support",
101-
buttonTo: "/",
101+
buttonTo: "https://t.me/kleros",
102102
Icon: InvalidIcon,
103103
color: "primaryText",
104104
},
105105
error: {
106106
headerMsg: "Something went wrong",
107107
subtitleMsg: "Oops, seems like something went wrong in our systems",
108108
buttonMsg: "Contact Support",
109-
buttonTo: "/",
109+
buttonTo: "https://t.me/kleros",
110110
Icon: WarningIcon,
111111
color: "error",
112112
},
@@ -141,8 +141,6 @@ const EmailConfirmation: React.FC = () => {
141141
const address = searchParams.get("address");
142142
const token = searchParams.get("token");
143143

144-
const navigate = useNavigate();
145-
146144
useEffect(() => {
147145
if (address && isAddress(address) && token) {
148146
setIsConfirming(true);
@@ -176,7 +174,9 @@ const EmailConfirmation: React.FC = () => {
176174
</HeaderIconContainer>
177175
<Header fontColor={color}>{headerMsg}</Header>
178176
<Subtitle>{subtitleMsg}</Subtitle>
179-
<Button text={buttonMsg} onClick={() => navigate(buttonTo)} />
177+
<Link to={buttonTo}>
178+
<Button text={buttonMsg} />
179+
</Link>
180180
</InfoWrapper>
181181
<IconContainer>
182182
<Icon />

‎yarn.lock

+22-1,788
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.