Skip to content

Commit

Permalink
Merge pull request #171 from makeplane/preview
Browse files Browse the repository at this point in the history
release: v0.18.5
  • Loading branch information
sriramveeraghanta authored Apr 17, 2024
2 parents a73ca1e + dc933ea commit 52f4ea2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/components/account/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./o-auth";
export * from "./sign-in-forms";
export * from "./sign-up-forms";
export * from "./deactivate-account-modal";
export * from "./terms-and-conditions";
2 changes: 2 additions & 0 deletions web/components/account/sign-in-forms/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
SignInPasswordForm,
OAuthOptions,
SignInOptionalSetPasswordForm,
TermsAndConditions,
} from "@/components/account";
import { LatestFeatureBlock } from "@/components/common";
import { NAVIGATE_TO_SIGNUP } from "@/constants/event-tracker";
Expand Down Expand Up @@ -121,6 +122,7 @@ export const SignInRoot = observer(() => {
Sign up
</Link>
</p>
<TermsAndConditions />
</>
)}
<LatestFeatureBlock />
Expand Down
2 changes: 2 additions & 0 deletions web/components/account/sign-up-forms/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
SignUpOptionalSetPasswordForm,
SignUpPasswordForm,
SignUpUniqueCodeForm,
TermsAndConditions,
} from "@/components/account";
import { NAVIGATE_TO_SIGNIN } from "@/constants/event-tracker";
import { useApplication, useEventTracker } from "@/hooks/store";
Expand Down Expand Up @@ -97,6 +98,7 @@ export const SignUpRoot = observer(() => {
Sign in
</Link>
</p>
<TermsAndConditions isSignUp />
</>
)}
</>
Expand Down
25 changes: 25 additions & 0 deletions web/components/account/terms-and-conditions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React, { FC } from "react";
import Link from "next/link";

type Props = {
isSignUp?: boolean;
};

export const TermsAndConditions: FC<Props> = (props) => {
const { isSignUp = false } = props;
return (
<span className="flex items-center justify-center py-6">
<p className="text-center text-sm text-onboarding-text-200 whitespace-pre-line">
{isSignUp ? "By creating an account" : "By signing in"}, you agree to our{" \n"}
<Link href="https://plane.so/legals/terms-and-conditions" target="_blank" rel="noopener noreferrer">
<span className="text-sm font-medium underline hover:cursor-pointer">Terms of Service</span>
</Link>{" "}
and{" "}
<Link href="https://plane.so/legals/privacy-policy" target="_blank" rel="noopener noreferrer">
<span className="text-sm font-medium underline hover:cursor-pointer">Privacy Policy</span>
</Link>
{"."}
</p>
</span>
);
};

0 comments on commit 52f4ea2

Please sign in to comment.