mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-19 18:14:38 +00:00
Concat plugin to app (#1799)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import type { IconProps } from '@chakra-ui/react';
|
||||
import { Icon } from '@chakra-ui/react';
|
||||
import { Box, Icon } from '@chakra-ui/react';
|
||||
import { iconPaths } from './constants';
|
||||
import type { IconNameType } from './type.d';
|
||||
|
||||
@@ -25,7 +25,9 @@ const MyIcon = ({ name, w = 'auto', h = 'auto', ...props }: { name: IconNameType
|
||||
fill={'currentcolor'}
|
||||
{...props}
|
||||
/>
|
||||
) : null;
|
||||
) : (
|
||||
<Box w={w} h={'1px'}></Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default React.memo(MyIcon);
|
||||
|
Reference in New Issue
Block a user