feat: modify DuckDuckGo's style #918 (#1485)

### What problem does this PR solve?

feat: modify DuckDuckGo's style #918
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-12 15:04:45 +08:00
committed by GitHub
parent b96ba6f831
commit 013db9410f
5 changed files with 72 additions and 50 deletions

View File

@@ -6,11 +6,14 @@ import styles from './index.less';
interface IProps {
name: Operator;
fontSize?: number;
width?: number;
}
const OperatorIcon = ({ name, fontSize }: IProps) => {
const OperatorIcon = ({ name, fontSize, width }: IProps) => {
const Icon = operatorIconMap[name] || React.Fragment;
return <Icon className={styles.icon} style={{ fontSize }}></Icon>;
return (
<Icon className={styles.icon} style={{ fontSize }} width={width}></Icon>
);
};
export default OperatorIcon;