mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 01:25:33 +08:00
style: format code with prettier
This commit is contained in:
@@ -183,7 +183,10 @@ const UsageFooter: React.FC<UsageFooterProps> = ({
|
||||
|
||||
{/* 扩展字段 extra */}
|
||||
{firstUsage.extra && (
|
||||
<span className="text-gray-500 dark:text-gray-400 truncate max-w-[150px]" title={firstUsage.extra}>
|
||||
<span
|
||||
className="text-gray-500 dark:text-gray-400 truncate max-w-[150px]"
|
||||
title={firstUsage.extra}
|
||||
>
|
||||
{firstUsage.extra}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -55,7 +55,8 @@ const EnvPanel: React.FC = () => {
|
||||
let description = detail || undefined;
|
||||
if (detail === "OPENCLAW_ENV_EMPTY") {
|
||||
description = t("openclaw.env.empty", {
|
||||
defaultValue: "OpenClaw env cannot be empty. Use {} for an empty object.",
|
||||
defaultValue:
|
||||
"OpenClaw env cannot be empty. Use {} for an empty object.",
|
||||
});
|
||||
} else if (detail === "OPENCLAW_ENV_INVALID_JSON") {
|
||||
description = t("openclaw.env.invalidJson", {
|
||||
|
||||
@@ -179,9 +179,12 @@ const ToolsPanel: React.FC = () => {
|
||||
<SelectItem
|
||||
value={OPENCLAW_UNSUPPORTED_PROFILE}
|
||||
disabled={true}
|
||||
>{`${unsupportedProfile} (${t("openclaw.tools.unsupportedProfileLabel", {
|
||||
defaultValue: "unsupported",
|
||||
})})`}</SelectItem>
|
||||
>{`${unsupportedProfile} (${t(
|
||||
"openclaw.tools.unsupportedProfileLabel",
|
||||
{
|
||||
defaultValue: "unsupported",
|
||||
},
|
||||
)})`}</SelectItem>
|
||||
)}
|
||||
{OPENCLAW_TOOL_PROFILES.map((profile) => (
|
||||
<SelectItem key={profile} value={profile}>
|
||||
|
||||
Reference in New Issue
Block a user