Skip to content

Commit 33b818e

Browse files
committed
refactor(web): export-ensure-auth-as-default
1 parent 53b7b2a commit 33b818e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

web/src/components/EnsureAuth.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface IEnsureAuth {
1515
className?: string;
1616
}
1717

18-
export const EnsureAuth: React.FC<IEnsureAuth> = ({ children, className }) => {
18+
const EnsureAuth: React.FC<IEnsureAuth> = ({ children, className }) => {
1919
const localToken = window.sessionStorage.getItem("auth-token");
2020
const [isLoading, setIsLoading] = useState(false);
2121

@@ -96,3 +96,5 @@ async function createMessage(address: `0x${string}`, statement: string, chainId:
9696
});
9797
return message;
9898
}
99+
100+
export default EnsureAuth;

web/src/layout/Header/navbar/Menu/Settings/Notifications/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import styled from "styled-components";
44
import TelegramLogo from "svgs/socialmedia/telegram.svg";
55

66
import { HERMES_TELEGRAM_BOT_URL } from "consts/index";
7-
import { EnsureAuth } from "components/EnsureAuth";
87

8+
import EnsureAuth from "components/EnsureAuth";
99
import { EnsureChain } from "components/EnsureChain";
1010
import { ISettings } from "layout/Header/navbar/index";
1111

web/src/pages/Cases/CaseDetails/Evidence/SubmitEvidenceModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { simulateEvidenceModuleSubmitEvidence } from "hooks/contracts/generated"
1111
import { uploadFormDataToIPFS } from "utils/uploadFormDataToIPFS";
1212
import { wrapWithToast, OPTIONS as toastOptions } from "utils/wrapWithToast";
1313

14-
import { EnsureAuth } from "components/EnsureAuth";
14+
import EnsureAuth from "components/EnsureAuth";
1515
import { EnsureChain } from "components/EnsureChain";
1616

1717
const StyledModal = styled(Modal)`

web/src/pages/Resolver/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { landscapeStyle } from "styles/landscapeStyle";
99
import { responsiveSize } from "styles/responsiveSize";
1010

1111
import ConnectWallet from "components/ConnectWallet";
12-
import { EnsureAuth } from "components/EnsureAuth";
12+
import EnsureAuth from "components/EnsureAuth";
1313
import HeroImage from "components/HeroImage";
1414
import HowItWorks from "components/HowItWorks";
1515
import Resolver from "components/Popup/MiniGuides/DisputeResolver";

0 commit comments

Comments
 (0)