mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
optimistic ui for mobile buttons too (#10827)
This commit is contained in:
parent
80e330594b
commit
46e3157c7f
@ -385,10 +385,10 @@ function ShowReviewFilter({
|
||||
className="block md:hidden"
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
onClick={() => setShowReviewed(showReviewed == 0 ? 1 : 0)}
|
||||
onClick={() => setShowReviewedSwitch(showReviewedSwitch == 0 ? 1 : 0)}
|
||||
>
|
||||
<FaCheckCircle
|
||||
className={`${showReviewed == 1 ? "text-selected" : "text-muted-foreground"}`}
|
||||
className={`${showReviewedSwitch == 1 ? "text-selected" : "text-muted-foreground"}`}
|
||||
/>
|
||||
</Button>
|
||||
</>
|
||||
@ -664,10 +664,10 @@ function ShowMotionOnlyButton({
|
||||
<Button
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
onClick={() => setMotionOnly(!motionOnly)}
|
||||
onClick={() => setMotionOnlyButton(!motionOnlyButton)}
|
||||
>
|
||||
<FaRunning
|
||||
className={`${motionOnly ? "text-selected" : "text-muted-foreground"}`}
|
||||
className={`${motionOnlyButton ? "text-selected" : "text-muted-foreground"}`}
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user