refactor(nui): Styling and sizing changes

This commit is contained in:
Luke
2022-03-20 19:58:52 +01:00
parent 5a556f3764
commit 3148ef6b1f
6 changed files with 27 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ import { fetchNui } from "../utils/fetchNui";
interface Props {
duration: number;
position?: "middle" | "bottom";
percent?: boolean;
}
debugData([
@@ -74,9 +75,11 @@ const CircleProgressbar: React.FC = () => {
<ScaleFade in={visible} unmountOnExit>
<CircularProgress
value={value}
size="7rem"
size="5rem"
trackColor="rgba(0, 0, 0, 0.6)"
onAnimationEnd={progressComplete}
color={cancelled ? "rgb(198, 40, 40)" : "blue.400"}
thickness={6}
color={cancelled ? "rgb(198, 40, 40)" : "white"}
sx={
!cancelled
? {
@@ -95,7 +98,9 @@ const CircleProgressbar: React.FC = () => {
}
}
>
<CircularProgressLabel color="black">{value}%</CircularProgressLabel>
<CircularProgressLabel fontFamily="Fira Mono">
{value}%
</CircularProgressLabel>
</CircularProgress>
</ScaleFade>
</Flex>