Skip to content

Commit

Permalink
autofocus email onboard partner sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Nov 16, 2024
1 parent 7c5ca1f commit 6a55371
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Combobox,
LinkLogo,
Sheet,
useMediaQuery,
} from "@dub/ui";
import { ArrowTurnRight2 } from "@dub/ui/src/icons";
import { cn, getApexDomain, linkConstructor } from "@dub/utils";
Expand All @@ -36,6 +37,7 @@ function InvitePartnerSheetContent({ setIsOpen }: InvitePartnerSheetProps) {
const [shortKey, setShortKey] = useState("");
const [useExistingLink, setUseExistingLink] = useState(false);
const [creatingLink, setCreatingLink] = useState(false);
const { isMobile } = useMediaQuery();

const {
register,
Expand Down Expand Up @@ -156,6 +158,7 @@ function InvitePartnerSheetContent({ setIsOpen }: InvitePartnerSheetProps) {
required
type="email"
autoComplete="off"
autoFocus={!isMobile}
/>
</div>
</div>
Expand Down

0 comments on commit 6a55371

Please sign in to comment.