mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 20:16:49 +08:00
### What problem does this PR solve? add support for ollama Issue link:#221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -21,13 +21,16 @@ try {
|
||||
interface IProps extends IconComponentProps {
|
||||
name: string;
|
||||
width: string | number;
|
||||
height?: string | number;
|
||||
}
|
||||
|
||||
const SvgIcon = ({ name, width, ...restProps }: IProps) => {
|
||||
const SvgIcon = ({ name, width, height, ...restProps }: IProps) => {
|
||||
const ListItem = routeList.find((item) => item.name === name);
|
||||
return (
|
||||
<Icon
|
||||
component={() => <img src={ListItem?.value} alt="" width={width} />}
|
||||
component={() => (
|
||||
<img src={ListItem?.value} alt="" width={width} height={height} />
|
||||
)}
|
||||
{...(restProps as any)}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user