mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26: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;
|
||||
@@ -42,10 +42,12 @@ const useStyles = createStyles((theme, params: { position: 'middle' | 'bottom';
|
||||
textAlign: 'center',
|
||||
fontFamily: 'roboto-mono',
|
||||
textShadow: theme.shadows.sm,
|
||||
color: theme.colors.gray[3],
|
||||
},
|
||||
label: {
|
||||
textAlign: 'center',
|
||||
textShadow: theme.shadows.sm,
|
||||
color: theme.colors.gray[3],
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Progress, Box, Text, createStyles } from '@mantine/core';
|
||||
import { Box, Text, createStyles } from '@mantine/core';
|
||||
import { useNuiEvent } from '../../hooks/useNuiEvent';
|
||||
import { fetchNui } from '../../utils/fetchNui';
|
||||
import ScaleFade from '../../transitions/ScaleFade';
|
||||
@@ -45,6 +45,7 @@ const useStyles = createStyles((theme) => ({
|
||||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap',
|
||||
fontSize: 20,
|
||||
color: theme.colors.gray[3],
|
||||
textShadow: theme.shadows.sm,
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user