mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +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"
|
className="block md:hidden"
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
onClick={() => setShowReviewed(showReviewed == 0 ? 1 : 0)}
|
onClick={() => setShowReviewedSwitch(showReviewedSwitch == 0 ? 1 : 0)}
|
||||||
>
|
>
|
||||||
<FaCheckCircle
|
<FaCheckCircle
|
||||||
className={`${showReviewed == 1 ? "text-selected" : "text-muted-foreground"}`}
|
className={`${showReviewedSwitch == 1 ? "text-selected" : "text-muted-foreground"}`}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
@ -664,10 +664,10 @@ function ShowMotionOnlyButton({
|
|||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
onClick={() => setMotionOnly(!motionOnly)}
|
onClick={() => setMotionOnlyButton(!motionOnlyButton)}
|
||||||
>
|
>
|
||||||
<FaRunning
|
<FaRunning
|
||||||
className={`${motionOnly ? "text-selected" : "text-muted-foreground"}`}
|
className={`${motionOnlyButton ? "text-selected" : "text-muted-foreground"}`}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user