Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: migrate TermsOfServiceLink from MUI to shadcn/ui#20260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jaaydenh merged 3 commits intomainfromjaaydenh/refactor-terms-of-service
Oct 15, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletionssite/src/pages/LoginPage/LoginPageView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,10 +68,7 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
</div>
<div>{buildInfo?.version}</div>
{tosAccepted && (
<TermsOfServiceLink
url={authMethods?.terms_of_service_url}
css={{ fontSize: 12 }}
/>
<TermsOfServiceLink url={authMethods?.terms_of_service_url} />
)}
</footer>
</div>
Expand Down
16 changes: 5 additions & 11 deletionssite/src/pages/LoginPage/TermsOfServiceLink.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
import Link from "@mui/material/Link";
import { SquareArrowOutUpRightIcon } from "lucide-react";
import { Link } from "components/Link/Link";
import type { FC } from "react";

interface TermsOfServiceLinkProps {
className?: string;
url?: string;
}

export const TermsOfServiceLink: FC<TermsOfServiceLinkProps> = ({
className,
url,
}) => {
export const TermsOfServiceLink: FC<TermsOfServiceLinkProps> = ({ url }) => {
return (
<divcss={{ paddingTop: 12, fontSize: 16 }}className={className}>
<div className="pt-3 text-base">
By continuing, you agree to the{" "}
<Link
css={{ fontWeight: 500, textWrap: "nowrap" }}
className="font-medium whitespace-nowrap"
href={url}
target="_blank"
rel="noreferrer"
>
Terms of Service&nbsp;
<SquareArrowOutUpRightIcon className="size-icon-xs" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why get rid of the arrow? it's to indicate it'll open in a new tab

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The component already has SquareArrowOutUpRightIcon inside it

Terms of Service
</Link>
</div>
);
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp