mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
fix(web/progress): remove cancelled timeout animation
This is not a fix, it's a workaround, removes the red animation when cancelling due to it causing the progress bar/circle to be permanently stuck
This commit is contained in:
@@ -32,9 +32,7 @@ const Progressbar: React.FC = () => {
|
||||
|
||||
const progressCancel = () => {
|
||||
setCancelled(true);
|
||||
setTimeout(() => {
|
||||
setVisible(false);
|
||||
}, 2500);
|
||||
setVisible(false);
|
||||
};
|
||||
|
||||
useNuiEvent("progressCancel", progressCancel);
|
||||
@@ -77,6 +75,7 @@ const Progressbar: React.FC = () => {
|
||||
animationDuration: `${duration}ms`,
|
||||
}
|
||||
: {
|
||||
// Currently unused
|
||||
width: "100%",
|
||||
animationPlayState: "paused",
|
||||
backgroundColor: "rgb(198, 40, 40)",
|
||||
|
||||
Reference in New Issue
Block a user