optimistic ui for mobile buttons too (#10827)

This commit is contained in:
Josh Hawkins 2024-04-04 10:46:19 -05:00 committed by GitHub
parent 80e330594b
commit 46e3157c7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>