Skip to content

Commit

Permalink
Fixed linting and build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
madhav-relish committed Nov 13, 2024
1 parent 5d8b358 commit 9b3e294
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/frontend/src/components/Inbox/MoveInboxItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ const MoveInboxItem = ({ inboxItemId }: Props) => {
const inputRef = useRef<HTMLInputElement>(null)
const [searchTerm, setSearchTerm] = useState<string>("")
const { spaces, fetchSpaces, loading: isSpaceLoading } = useSpaceStore()
const { updateItem, fetchInbox, items, isLoading: isInboxItemsLoading } = useCycleItemStore()
const {
updateItem,
fetchInbox,
items,
isLoading: isInboxItemsLoading,
} = useCycleItemStore()
const [modalItems, setModalItems] = useState<CycleItem[]>(items)
const { toast } = useToast()

Expand Down Expand Up @@ -128,7 +133,7 @@ const MoveInboxItem = ({ inboxItemId }: Props) => {
<div className="flex items-center gap-5 bg-transparent text-secondary-foreground">
<div className="flex h-fit min-w-[350px] flex-col gap-5 overflow-hidden rounded-lg bg-background p-5 py-0 text-sm">
<div className="flex max-h-48 flex-col gap-1.5 overflow-y-auto">
{isInboxItemsLoading && <div>Loading Inbox Items...</div>}
{isInboxItemsLoading && <div>Loading Inbox Items...</div>}
{filteredItems.length > 0 ? (
filteredItems?.map((item) => (
<button
Expand Down Expand Up @@ -160,7 +165,7 @@ const MoveInboxItem = ({ inboxItemId }: Props) => {
<div className="flex items-center gap-5 bg-transparent text-secondary-foreground">
<div className="flex h-fit min-w-[350px] flex-col gap-5 overflow-hidden rounded-lg bg-background p-5 pt-0 text-sm">
<div className="flex max-h-48 flex-col gap-1.5 overflow-y-auto">
{isSpaceLoading && <div>Loading spaces...</div>}
{isSpaceLoading && <div>Loading spaces...</div>}
{filteredSpaces.length > 0 ? (
filteredSpaces.map((space) => (
<button
Expand Down

0 comments on commit 9b3e294

Please sign in to comment.