Skip to content

Commit 97c2cc8

Browse files
committed
refactor: update AuthDialog component and styles
- Removed unnecessary comment from AuthDialog.scss to streamline the styles. - Changed the type of `warningText` prop in AuthDialog from string to React.ReactNode for better flexibility in rendering content.
1 parent c9972c7 commit 97c2cc8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/frontend/src/ui/AuthDialog.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* Auth Modal Styles */
2-
31
.excalidraw .Dialog--fullscreen {
42
&.auth-modal {
53
.Dialog__close {

src/frontend/src/ui/AuthDialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import React, { useMemo, useEffect } from "react";
2+
3+
import { Dialog } from "@atyrode/excalidraw";
4+
25
import { capture } from "../lib/posthog";
36
import { GoogleIcon, GithubIcon } from "../icons";
47
import "./AuthDialog.scss";
58

6-
import { Dialog } from "@atyrode/excalidraw";
79

810
interface AuthDialogProps {
911
description?: React.ReactNode;
10-
warningText?: string;
11-
onClose?: () => void;
12+
warningText?: React.ReactNode;
1213
children?: React.ReactNode;
1314
}
1415

1516
export const AuthDialog = ({
1617
description = <>Welcome to your <strong className="highlight">whiteboard IDE</strong>. <br /><br /> Open <strong className="highlight">terminals</strong>, <strong className="highlight">VSCode</strong>, or <strong className="highlight">Cursor</strong> in your pad, and start coding right away.</>,
1718
warningText = <>This is an open-source project in beta.<br /> Back up your work!</>,
18-
onClose,
1919
children,
2020
}: AuthDialogProps) => {
2121
const logoMessages = [

0 commit comments

Comments
 (0)