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

Commit3699ff6

Browse files
jaaydenhclaude
andauthored
refactor: migrate TermsOfServiceLink from MUI to shadcn/ui (#20260)
## SummaryMigrate the `TermsOfServiceLink` component from MUI to shadcn/ui## Changes- **Replaced** `@mui/material/Link` with the custom `Link` componentfrom `components/Link/Link` (shadcn/ui)- **Migrated** Emotion `css` prop to Tailwind utility classes- **Preserved** external link icon functionality (automatically providedby shadcn Link component)🤖 Generated with [Claude Code](https://claude.com/claude-code)---------Co-authored-by: Claude <noreply@anthropic.com>
1 parente0b1536 commit3699ff6

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

‎site/src/pages/LoginPage/LoginPageView.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
6868
</div>
6969
<div>{buildInfo?.version}</div>
7070
{tosAccepted&&(
71-
<TermsOfServiceLink
72-
url={authMethods?.terms_of_service_url}
73-
css={{fontSize:12}}
74-
/>
71+
<TermsOfServiceLinkurl={authMethods?.terms_of_service_url}/>
7572
)}
7673
</footer>
7774
</div>

‎site/src/pages/LoginPage/TermsOfServiceLink.tsx‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
1-
importLinkfrom"@mui/material/Link";
2-
import{SquareArrowOutUpRightIcon}from"lucide-react";
1+
import{Link}from"components/Link/Link";
32
importtype{FC}from"react";
43

54
interfaceTermsOfServiceLinkProps{
6-
className?:string;
75
url?:string;
86
}
97

10-
exportconstTermsOfServiceLink:FC<TermsOfServiceLinkProps>=({
11-
className,
12-
url,
13-
})=>{
8+
exportconstTermsOfServiceLink:FC<TermsOfServiceLinkProps>=({ url})=>{
149
return(
15-
<divcss={{paddingTop:12,fontSize:16}}className={className}>
10+
<divclassName="pt-3 text-base">
1611
By continuing, you agree to the{" "}
1712
<Link
18-
css={{fontWeight:500,textWrap:"nowrap"}}
13+
className="font-medium whitespace-nowrap"
1914
href={url}
2015
target="_blank"
2116
rel="noreferrer"
2217
>
23-
Terms of Service&nbsp;
24-
<SquareArrowOutUpRightIconclassName="size-icon-xs"/>
18+
Terms of Service
2519
</Link>
2620
</div>
2721
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp