Skip to content

Commit

Permalink
move focus to price in expenses
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulkrishh committed Jan 14, 2024
1 parent 2768c5f commit c3579a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions components/add/expenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ export default function AddExpense({ show, onHide, mutate, selected, lookup }: A
placeholder="Swiggy - Biriyani"
maxLength={30}
required
ref={inputRef}
autoFocus
autoComplete="off"
onChange={({ target }) => {
const { value } = target;
Expand Down Expand Up @@ -146,6 +144,8 @@ export default function AddExpense({ show, onHide, mutate, selected, lookup }: A
</span>
</Label>
<Input
ref={inputRef}
autoFocus
className="mt-1.5"
id="price"
type="number"
Expand Down
10 changes: 1 addition & 9 deletions components/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ import { Dialog, Transition } from '@headlessui/react';
import { useMediaQuery } from 'hooks/useMediaQuery';
import { X } from 'lucide-react';

import {
Drawer,
DrawerClose,
DrawerContent,
DrawerFooter,
DrawerHeader,
DrawerOverlay,
DrawerTitle,
} from 'components/ui/drawer';
import { Drawer, DrawerContent, DrawerHeader, DrawerOverlay, DrawerTitle } from 'components/ui/drawer';

interface ModalProps {
show: boolean;
Expand Down

1 comment on commit c3579a5

@vercel
Copy link

@vercel vercel bot commented on c3579a5 Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.