fix: nsfw button

This commit is contained in:
Damien Ostler 2024-06-02 01:32:37 -04:00
parent f175b31976
commit 54ec36cebc

View File

@ -93,11 +93,11 @@ const SearchInput = ({ tagsChanged, searchChanged, nsfwChanged }: SearchInputPro
}} }}
value={selectedTagsInput} value={selectedTagsInput}
primaryColor={"indigo"} /> primaryColor={"indigo"} />
<span className="flex items-center rounded rounded-l-none border-0 px-3 font-bold text-grey-100"> <span className="flex items-center rounded rounded-l-none border-0 font-bold text-grey-100">
<button <button
onClick={() => { setNsfw(!nsfw) }} onClick={() => { setNsfw(!nsfw) }}
type="button" type="button"
className={`animate-in text-sm text-white font-bold py-1 w-16 px-2 rounded ml-2 ${nsfw ? "bg-error hover:bg-error-light" : "bg-success hover:bg-success-light"}`} className={`animate-in text-sm text-white font-bold h-full w-16 px-2 rounded ${nsfw ? "bg-error hover:bg-error-light" : "bg-success hover:bg-success-light"}`}
> >
{nsfw ? "NSFW" : "SFW"} {nsfw ? "NSFW" : "SFW"}