mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
chore: release v3.10.1
- Bump version to 3.10.1 across all config files - Update CHANGELOG with all fixes since v3.10.0 - Fix Rust Clippy warning by using derive(Default) - Apply code formatting
This commit is contained in:
@@ -42,7 +42,7 @@ export const ProviderIcon: React.FC<ProviderIconProps> = ({
|
||||
// 获取有效颜色:优先使用传入的有效 color,否则从元数据获取 defaultColor
|
||||
const effectiveColor = useMemo(() => {
|
||||
// 只有当 color 是有效的非空字符串时才使用
|
||||
if (color && typeof color === 'string' && color.trim() !== '') {
|
||||
if (color && typeof color === "string" && color.trim() !== "") {
|
||||
return color;
|
||||
}
|
||||
// 否则从元数据获取 defaultColor
|
||||
|
||||
Reference in New Issue
Block a user