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

Commitdf738ab

Browse files
chore: remove MUI icons (#20318)
1 parentcc41274 commitdf738ab

File tree

10 files changed

+11
-59
lines changed

10 files changed

+11
-59
lines changed

‎biome.jsonc‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"options": {
4646
"paths": {
4747
"@mui/material":"Use @mui/material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.",
48-
"@mui/icons-material":"Use @mui/icons-material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.",
4948
"@mui/material/Avatar":"Use components/Avatar/Avatar instead.",
5049
"@mui/material/Alert":"Use components/Alert/Alert instead.",
5150
"@mui/material/Popover":"Use components/Popover/Popover instead.",

‎site/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"@fontsource/jetbrains-mono":"5.2.5",
4848
"@fontsource/source-code-pro":"5.2.5",
4949
"@monaco-editor/react":"4.7.0",
50-
"@mui/icons-material":"5.18.0",
5150
"@mui/material":"5.18.0",
5251
"@mui/system":"5.18.0",
5352
"@mui/utils":"5.17.1",

‎site/pnpm-lock.yaml‎

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
importGitHubIconfrom"@mui/icons-material/GitHub";
21
import{visuallyHidden}from"@mui/utils";
32
importtype{AuthMethods}from"api/typesGenerated";
43
import{Button}from"components/Button/Button";
4+
import{ExternalImage}from"components/ExternalImage/ExternalImage";
55
import{KeyIcon}from"lucide-react";
66
import{typeFC,useId}from"react";
77
import{Language}from"./Language";
@@ -33,7 +33,7 @@ export const OAuthSignInForm: FC<OAuthSignInFormProps> = ({
3333
redirectTo,
3434
)}`}
3535
>
36-
<GitHubIcon/>
36+
<ExternalImagesrc="/icon/github.svg"/>
3737
{Language.githubSignIn}
3838
</a>
3939
</Button>

‎site/src/pages/SetupPage/SetupPageView.tsx‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
importGitHubIconfrom"@mui/icons-material/GitHub";
21
importAlertTitlefrom"@mui/material/AlertTitle";
32
importAutocompletefrom"@mui/material/Autocomplete";
43
importCheckboxfrom"@mui/material/Checkbox";
@@ -10,6 +9,7 @@ import type * as TypesGen from "api/typesGenerated";
109
import{isAxiosError}from"axios";
1110
import{Alert,AlertDetail}from"components/Alert/Alert";
1211
import{Button}from"components/Button/Button";
12+
import{ExternalImage}from"components/ExternalImage/ExternalImage";
1313
import{FormFields,VerticalForm}from"components/Form/Form";
1414
import{CoderIcon}from"components/Icons/CoderIcon";
1515
import{PasswordField}from"components/PasswordField/PasswordField";
@@ -98,11 +98,6 @@ const numberOfDevelopersOptions = [
9898
"2500+",
9999
];
100100

101-
consticonStyles={
102-
width:16,
103-
height:16,
104-
};
105-
106101
interfaceSetupPageViewProps{
107102
onSubmit:(firstUser:TypesGen.CreateFirstUserRequest)=>void;
108103
error?:unknown;
@@ -174,7 +169,7 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
174169
<>
175170
<ButtonclassName="w-full"asChildtype="submit"size="lg">
176171
<ahref="/api/v2/users/oauth2/github/callback">
177-
<GitHubIconcss={iconStyles}/>
172+
<ExternalImagesrc="/icon/github.svg"/>
178173
{Language.githubCreate}
179174
</a>
180175
</Button>

‎site/src/pages/TaskPage/TaskStatusLink.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
importGitHubfrom"@mui/icons-material/GitHub";
21
import{Button}from"components/Button/Button";
2+
import{ExternalImage}from"components/ExternalImage/ExternalImage";
33
import{
44
BugIcon,
55
ExternalLinkIcon,
@@ -41,7 +41,7 @@ export const TaskStatusLink: FC<TaskStatusLinkProps> = ({ uri }) => {
4141
:`${org}/${repo} issue`;
4242
break;
4343
default:
44-
icon=<GitHub/>;
44+
icon=<ExternalImagesrc="/icon/github.svg"/>;
4545
if(org&&repo){
4646
label=`${org}/${repo}`;
4747
}

‎site/src/pages/UserSettingsPage/SecurityPage/SingleSignOnSection.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import{useTheme}from"@emotion/react";
2-
importGitHubIconfrom"@mui/icons-material/GitHub";
32
importLinkfrom"@mui/material/Link";
43
importTextFieldfrom"@mui/material/TextField";
54
import{API}from"api/api";
@@ -13,6 +12,7 @@ import type {
1312
import{Button}from"components/Button/Button";
1413
import{ConfirmDialog}from"components/Dialogs/ConfirmDialog/ConfirmDialog";
1514
import{EmptyState}from"components/EmptyState/EmptyState";
15+
import{ExternalImage}from"components/ExternalImage/ExternalImage";
1616
import{Stack}from"components/Stack/Stack";
1717
import{CircleCheckasCircleCheckIcon,KeyIcon}from"lucide-react";
1818
import{typeFC,useState}from"react";
@@ -155,7 +155,7 @@ export const SingleSignOnSection: FC<SingleSignOnSectionProps> = ({
155155
disabled={isUpdating}
156156
onClick={()=>openConfirmation("github")}
157157
>
158-
<GitHubIcon/>
158+
<ExternalImagesrc="/icon/github.svg"/>
159159
GitHub
160160
</Button>
161161
)}
@@ -204,7 +204,7 @@ export const SingleSignOnSection: FC<SingleSignOnSectionProps> = ({
204204
</span>
205205
<divcss={{marginLeft:"auto",lineHeight:1}}>
206206
{userLoginType.login_type==="github" ?(
207-
<GitHubIconcss={{width:16,height:16}}/>
207+
<ExternalImagesrc="/icon/github.svg"/>
208208
) :(
209209
<OIDCIconoidcAuth={authMethods.oidc}/>
210210
)}

‎site/src/pages/UsersPage/UsersTable/UsersTableBody.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importtype{Interpolation,Theme}from"@emotion/react";
2-
importGitHubfrom"@mui/icons-material/GitHub";
32
importSkeletonfrom"@mui/material/Skeleton";
43
importtype{GroupsByUserId}from"api/queries/groups";
54
importtype*asTypesGenfrom"api/typesGenerated";
@@ -16,6 +15,7 @@ import {
1615
DropdownMenuTrigger,
1716
}from"components/DropdownMenu/DropdownMenu";
1817
import{EmptyState}from"components/EmptyState/EmptyState";
18+
import{ExternalImage}from"components/ExternalImage/ExternalImage";
1919
import{LastSeen}from"components/LastSeen/LastSeen";
2020
import{TableCell,TableRow}from"components/Table/Table";
2121
import{
@@ -269,7 +269,7 @@ const LoginType: FC<LoginTypeProps> = ({ authMethods, value }) => {
269269
icon=<BanIconcss={styles.icon}/>;
270270
}elseif(value==="github"){
271271
displayName="GitHub";
272-
icon=<GitHubcss={styles.icon}/>;
272+
icon=<ExternalImagesrc="/icon/github.svg"css={styles.icon}/>;
273273
}elseif(value==="token"){
274274
displayName="Token";
275275
icon=<KeyIconcss={styles.icon}/>;

‎site/src/theme/light/mui.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,6 @@ const muiTheme = createTheme({
186186
}),
187187
},
188188
},
189-
MuiIconButton:{
190-
styleOverrides:{
191-
root:{
192-
"&.Mui-focusVisible":{
193-
boxShadow:`0 0 0 2px${tw.blue[600]}`,
194-
},
195-
},
196-
},
197-
},
198189
},
199190
});
200191

‎site/src/theme/mui.ts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,4 @@ export const components = {
322322
},
323323
},
324324
},
325-
326-
MuiIconButton:{
327-
styleOverrides:{
328-
root:{
329-
"&.Mui-focusVisible":{
330-
boxShadow:`0 0 0 2px${tw.blue[400]}`,
331-
},
332-
},
333-
},
334-
},
335325
}satisfiesThemeOptions["components"];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp