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

chore: replace MUI icons - 3#17733

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
BrunoQuaresma merged 3 commits intomainfrombq/replace-mui-icons-3
May 9, 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
6 changes: 4 additions & 2 deletionssite/src/components/Paywall/Paywall.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
import type { Interpolation, Theme } from "@emotion/react";
import TaskAltIcon from "@mui/icons-material/TaskAlt";
import Link from "@mui/material/Link";
import { PremiumBadge } from "components/Badges/Badges";
import { Button } from "components/Button/Button";
import { Stack } from "components/Stack/Stack";
import { CircleCheckBigIcon } from "lucide-react";
import type { FC, ReactNode } from "react";

export interface PaywallProps {
Expand DownExpand Up@@ -73,7 +73,9 @@ export const Paywall: FC<PaywallProps> = ({

const FeatureIcon: FC = () => {
return (
<TaskAltIcon
<CircleCheckBigIcon
aria-hidden="true"
className="size-icon-sm"
css={[
(theme) => ({
color: theme.branding.premium.border,
Expand Down
6 changes: 4 additions & 2 deletionssite/src/components/Paywall/PopoverPaywall.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
import type { Interpolation, Theme } from "@emotion/react";
import TaskAltIcon from "@mui/icons-material/TaskAlt";
import Link from "@mui/material/Link";
import { PremiumBadge } from "components/Badges/Badges";
import { Button } from "components/Button/Button";
import { Stack } from "components/Stack/Stack";
import { CircleCheckBigIcon } from "lucide-react";
import type { FC, ReactNode } from "react";

export interface PopoverPaywallProps {
Expand DownExpand Up@@ -77,7 +77,9 @@ export const PopoverPaywall: FC<PopoverPaywallProps> = ({

const FeatureIcon: FC = () => {
return (
<TaskAltIcon
<CircleCheckBigIcon
aria-hidden="true"
className="size-icon-sm"
css={[
(theme) => ({
color: theme.branding.premium.border,
Expand Down
4 changes: 2 additions & 2 deletionssite/src/components/Pill/Pill.stories.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
import InfoOutlined from "@mui/icons-material/InfoOutlined";
import type { Meta, StoryObj } from "@storybook/react";
import { InfoIcon } from "lucide-react";
import { Pill, PillSpinner } from "./Pill";

const meta: Meta<typeof Pill> = {
Expand DownExpand Up@@ -68,7 +68,7 @@ export const WithIcon: Story = {
args: {
children: "Information",
type: "info",
icon: <InfoOutlined />,
icon: <InfoIcon aria-hidden="true" className="size-icon-sm" />,
},
};

Expand Down
18 changes: 15 additions & 3 deletionssite/src/modules/resources/AppLink/AppLink.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
import { useTheme } from "@emotion/react";
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import type * as TypesGen from "api/typesGenerated";
import { Spinner } from "components/Spinner/Spinner";
import {
Expand All@@ -9,6 +8,7 @@ import {
TooltipTrigger,
} from "components/Tooltip/Tooltip";
import { useProxy } from "contexts/ProxyContext";
import { CircleAlertIcon } from "lucide-react";
import { isExternalApp, needsSessionToken } from "modules/apps/apps";
import { useAppLink } from "modules/apps/useAppLink";
import { type FC, useState } from "react";
Expand DownExpand Up@@ -54,13 +54,25 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
}

if (app.health === "unhealthy") {
icon = <ErrorOutlineIcon css={{ color: theme.palette.warning.light }} />;
icon = (
<CircleAlertIcon
aria-hidden="true"
className="size-icon-sm"
css={{ color: theme.palette.warning.light }}
/>
);
primaryTooltip = "Unhealthy";
}

if (!host && app.subdomain) {
canClick = false;
icon = <ErrorOutlineIcon css={{ color: theme.palette.grey[300] }} />;
icon = (
<CircleAlertIcon
aria-hidden="true"
className="size-icon-sm"
css={{ color: theme.palette.grey[300] }}
/>
);
primaryTooltip =
"Your admin has not configured subdomain application access";
}
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
import ErrorOutline from "@mui/icons-material/ErrorOutline";
import Tooltip, {
type TooltipProps,
tooltipClasses,
Expand All@@ -7,6 +6,7 @@ import type { Workspace } from "api/typesGenerated";
import { ChooseOne, Cond } from "components/Conditionals/ChooseOne";
import { Pill } from "components/Pill/Pill";
import { useClassName } from "hooks/useClassName";
import { CircleAlertIcon } from "lucide-react";
import type { FC, ReactNode } from "react";
import { getDisplayWorkspaceStatus } from "utils/workspace";

Expand All@@ -31,10 +31,10 @@ export const WorkspaceStatusBadge: FC<WorkspaceStatusBadgeProps> = ({
<FailureTooltip
title={
<div css={{ display: "flex", alignItems: "center", gap: 10 }}>
<ErrorOutline
<CircleAlertIcon
aria-hidden="true"
className="size-icon-xs"
css={(theme) => ({
width: 14,
height: 14,
color: theme.palette.error.light,
})}
/>
Expand Down
7 changes: 5 additions & 2 deletionssite/src/pages/WorkspacePage/ChangeVersionDialog.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
import { css } from "@emotion/css";
import InfoIcon from "@mui/icons-material/InfoOutlined";
import AlertTitle from "@mui/material/AlertTitle";
import Autocomplete from "@mui/material/Autocomplete";
import CircularProgress from "@mui/material/CircularProgress";
Expand All@@ -14,6 +13,7 @@ import { FormFields } from "components/Form/Form";
import { Loader } from "components/Loader/Loader";
import { Pill } from "components/Pill/Pill";
import { Stack } from "components/Stack/Stack";
import { InfoIcon } from "lucide-react";
import { TemplateUpdateMessage } from "modules/templates/TemplateUpdateMessage";
import { type FC, useRef, useState } from "react";
import { createDayString } from "utils/createDayString";
Expand DownExpand Up@@ -106,7 +106,10 @@ export const ChangeVersionDialog: FC<ChangeVersionDialogProps> = ({
>
{option.name}
{option.message && (
<InfoIcon css={{ width: 12, height: 12 }} />
<InfoIcon
aria-hidden="true"
className="size-icon-xs"
/>
)}
</Stack>
{template?.active_version_id === option.id && (
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
import type { Interpolation, Theme } from "@emotion/react";
import InfoOutlined from "@mui/icons-material/InfoOutlined";
import WarningRounded from "@mui/icons-material/WarningRounded";
import { workspaceResolveAutostart } from "api/queries/workspaceQuota";
import type {
Expand All@@ -11,6 +10,7 @@ import type {
import { MemoizedInlineMarkdown } from "components/Markdown/Markdown";
import formatDistanceToNow from "date-fns/formatDistanceToNow";
import dayjs from "dayjs";
import { InfoIcon } from "lucide-react";
import { useDashboard } from "modules/dashboard/useDashboard";
import { TemplateUpdateMessage } from "modules/templates/TemplateUpdateMessage";
import { type FC, useEffect, useState } from "react";
Expand DownExpand Up@@ -251,7 +251,7 @@ export const WorkspaceNotifications: FC<WorkspaceNotificationsProps> = ({
<Notifications
items={infoNotifications}
severity="info"
icon={<InfoOutlined />}
icon={<InfoIcon aria-hidden="true" className="size-icon-sm" />}
/>
)}

Expand Down
9 changes: 4 additions & 5 deletionssite/src/utils/workspace.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
import type { Theme } from "@emotion/react";
import ErrorIcon from "@mui/icons-material/ErrorOutline";
import QueuedIcon from "@mui/icons-material/HourglassEmpty";
import type * as TypesGen from "api/typesGenerated";
import { PillSpinner } from "components/Pill/Pill";
import dayjs from "dayjs";
import duration from "dayjs/plugin/duration";
import minMax from "dayjs/plugin/minMax";
import utc from "dayjs/plugin/utc";
import { PlayIcon, SquareIcon } from "lucide-react";
import {CircleAlertIcon,PlayIcon, SquareIcon } from "lucide-react";
import semver from "semver";
import { getPendingStatusLabel } from "./provisionerJob";

Expand DownExpand Up@@ -226,7 +225,7 @@ export const getDisplayWorkspaceStatus = (
return {
type: "danger",
text: "Deleted",
icon: <ErrorIcon />,
icon: <CircleAlertIcon aria-hidden="true" className="size-icon-sm" />,
} as const;
case "canceling":
return {
Expand All@@ -238,13 +237,13 @@ export const getDisplayWorkspaceStatus = (
return {
type: "inactive",
text: "Canceled",
icon: <ErrorIcon />,
icon: <CircleAlertIcon aria-hidden="true" className="size-icon-sm" />,
} as const;
case "failed":
return {
type: "error",
text: "Failed",
icon: <ErrorIcon />,
icon: <CircleAlertIcon aria-hidden="true" className="size-icon-sm" />,
} as const;
case "pending":
return {
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp