mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
chore(web): remove chakra packages
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
import { Box, Tooltip } from '@chakra-ui/react';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
|
||||
const InfoTooltip: React.FC<{ description: string }> = ({ description }) => {
|
||||
return (
|
||||
<Tooltip label={description} placement="top" hasArrow arrowSize={4} maxW={220}>
|
||||
<Box
|
||||
borderRadius="full"
|
||||
bg="whiteAlpha.200"
|
||||
p={0.5}
|
||||
w={18}
|
||||
h={18}
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
>
|
||||
<FontAwesomeIcon icon="question" fixedWidth fontSize={10} />
|
||||
</Box>
|
||||
</Tooltip>
|
||||
);
|
||||
};
|
||||
|
||||
export default InfoTooltip;
|
||||
@@ -1,13 +0,0 @@
|
||||
import { HStack, Text } from '@chakra-ui/react';
|
||||
import InfoTooltip from './InfoTooltip';
|
||||
|
||||
const Label: React.FC<{ label: string; description?: string }> = ({ label, description }) => {
|
||||
return (
|
||||
<HStack spacing={1}>
|
||||
<Text>{label}</Text>
|
||||
{description && <InfoTooltip description={description} />}
|
||||
</HStack>
|
||||
);
|
||||
};
|
||||
|
||||
export default Label;
|
||||
Reference in New Issue
Block a user