diff --git a/apps/app/components/account/email-code-form.tsx b/apps/app/components/account/email-code-form.tsx index bd798677a..f745c5521 100644 --- a/apps/app/components/account/email-code-form.tsx +++ b/apps/app/components/account/email-code-form.tsx @@ -120,7 +120,7 @@ export const EmailCodeForm = ({ handleSignIn }: any) => { Please check your inbox at {watch("email")}

)} -
+
= (props) => { - const { handleSignIn } = props; - +export const GoogleLoginButton: FC = ({ handleSignIn }) => { const googleSignInButton = useRef(null); const [gsiScriptLoaded, setGsiScriptLoaded] = useState(false); const loadScript = useCallback(() => { if (!googleSignInButton.current || gsiScriptLoaded) return; + window?.google?.accounts.id.initialize({ client_id: process.env.NEXT_PUBLIC_GOOGLE_CLIENTID || "", callback: handleSignIn, }); + window?.google?.accounts.id.renderButton( googleSignInButton.current, { @@ -27,12 +27,13 @@ export const GoogleLoginButton: FC = (props) => { theme: "outline", size: "large", logo_alignment: "center", - height: "46", width: "360", - text: "continue_with", + text: "signin_with", } as GsiButtonConfiguration // customization attributes ); + window?.google?.accounts.id.prompt(); // also display the One Tap dialog + setGsiScriptLoaded(true); }, [handleSignIn, gsiScriptLoaded]); diff --git a/apps/app/components/issues/modal.tsx b/apps/app/components/issues/modal.tsx index c8b8a398d..09c4dbfe0 100644 --- a/apps/app/components/issues/modal.tsx +++ b/apps/app/components/issues/modal.tsx @@ -262,7 +262,7 @@ export const CreateUpdateIssueModal: React.FC = ({ const updateIssue = async (payload: Partial) => { await issuesService - .updateIssue(workspaceSlug as string, activeProject ?? "", data?.id ?? "", payload, user) + .patchIssue(workspaceSlug as string, activeProject ?? "", data?.id ?? "", payload, user) .then((res) => { if (isUpdatingSingleIssue) { mutate(PROJECT_ISSUES_DETAILS, (prevData) => ({ ...prevData, ...res }), false); diff --git a/apps/app/components/onboarding/tour/sidebar.tsx b/apps/app/components/onboarding/tour/sidebar.tsx index ba6eba921..99832c166 100644 --- a/apps/app/components/onboarding/tour/sidebar.tsx +++ b/apps/app/components/onboarding/tour/sidebar.tsx @@ -1,32 +1,31 @@ -// icons -import { ContrastIcon, LayerDiagonalIcon, PeopleGroupIcon, ViewListIcon } from "components/icons"; -import { DocumentTextIcon } from "@heroicons/react/24/outline"; +// ui +import { Icon } from "components/ui"; // types import { TTourSteps } from "./root"; const sidebarOptions: { key: TTourSteps; - icon: any; + icon: string; }[] = [ { key: "issues", - icon: LayerDiagonalIcon, + icon: "stack", }, { key: "cycles", - icon: ContrastIcon, + icon: "contrast", }, { key: "modules", - icon: PeopleGroupIcon, + icon: "dataset", }, { key: "views", - icon: ViewListIcon, + icon: "photo_filter", }, { key: "pages", - icon: DocumentTextIcon, + icon: "article", }, ]; @@ -53,13 +52,11 @@ export const TourSidebar: React.FC = ({ step, setStep }) => ( }`} onClick={() => setStep(option.key)} > -
-
+
{parseInt(process.env.NEXT_PUBLIC_ENABLE_OAUTH || "0") ? ( <>

Sign in to Plane

-
+
-
+
diff --git a/apps/app/pages/reset-password.tsx b/apps/app/pages/reset-password.tsx index 99d988bc1..c25974cb9 100644 --- a/apps/app/pages/reset-password.tsx +++ b/apps/app/pages/reset-password.tsx @@ -100,7 +100,7 @@ const ResetPasswordPage: NextPage = () => {
-
+

Reset your password diff --git a/apps/app/pages/sign-up.tsx b/apps/app/pages/sign-up.tsx index c391ef2e4..fe8960d73 100644 --- a/apps/app/pages/sign-up.tsx +++ b/apps/app/pages/sign-up.tsx @@ -86,7 +86,7 @@ const SignUp: NextPage = () => {

-
+
diff --git a/apps/app/services/issues.service.ts b/apps/app/services/issues.service.ts index b848b3469..42596fa83 100644 --- a/apps/app/services/issues.service.ts +++ b/apps/app/services/issues.service.ts @@ -346,26 +346,6 @@ class ProjectIssuesServices extends APIService { }); } - async updateIssue( - workspaceSlug: string, - projectId: string, - issueId: string, - data: any, - user: ICurrentUserResponse | undefined - ): Promise { - return this.put( - `/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/${issueId}/`, - data - ) - .then((response) => { - if (trackEvent) trackEventServices.trackIssueEvent(response.data, "ISSUE_UPDATE", user); - return response?.data; - }) - .catch((error) => { - throw error?.response?.data; - }); - } - async patchIssue( workspaceSlug: string, projectId: string,