4.8.18 test (#3543)
* perf: login check * doc * perf: llm model config * perf: team clb config
This commit is contained in:
@@ -18,7 +18,6 @@ const MyIconButton = ({
|
||||
}: Props) => {
|
||||
return (
|
||||
<Flex
|
||||
mr={1}
|
||||
p={1}
|
||||
color={'myGray.500'}
|
||||
rounded={'sm'}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import React from 'react';
|
||||
import React, { forwardRef } from 'react';
|
||||
import { Flex, Box, BoxProps } from '@chakra-ui/react';
|
||||
import MyIcon from '../Icon';
|
||||
|
||||
type Props = Omit<BoxProps, 'onChange'> & {
|
||||
type Props<T = string> = Omit<BoxProps, 'onChange'> & {
|
||||
list: {
|
||||
icon?: string;
|
||||
label: string | React.ReactNode;
|
||||
value: string;
|
||||
value: T;
|
||||
}[];
|
||||
value: string;
|
||||
onChange: (e: string) => void;
|
||||
value: T;
|
||||
onChange: (e: T) => void;
|
||||
};
|
||||
|
||||
const FillRowTabs = ({ list, value, onChange, py = '7px', px = '12px', ...props }: Props) => {
|
||||
@@ -61,4 +61,6 @@ const FillRowTabs = ({ list, value, onChange, py = '7px', px = '12px', ...props
|
||||
);
|
||||
};
|
||||
|
||||
export default FillRowTabs;
|
||||
export default forwardRef(FillRowTabs) as <T>(
|
||||
props: Props<T> & { ref?: React.Ref<HTMLSelectElement> }
|
||||
) => JSX.Element;
|
||||
|
||||
Reference in New Issue
Block a user