move span inside of content to fix crash

This commit is contained in:
Josh Hawkins 2024-04-02 07:43:23 -05:00
parent a886b6a3e5
commit 8b2ef31279

View File

@ -220,10 +220,10 @@ export default function GeneralSettings({ className }: GeneralSettings) {
<span>Dark Mode</span> <span>Dark Mode</span>
</SubItemTrigger> </SubItemTrigger>
<Portal> <Portal>
<span tabIndex={0} className="sr-only" />
<SubItemContent <SubItemContent
className={isDesktop ? "" : "w-[92%] rounded-2xl"} className={isDesktop ? "" : "w-[92%] rounded-2xl"}
> >
<span tabIndex={0} className="sr-only" />
<MenuItem <MenuItem
className={ className={
isDesktop isDesktop