Skip to content

Commit

Permalink
feat: remove unwanted deps
Browse files Browse the repository at this point in the history
  • Loading branch information
katungi committed Apr 11, 2024
1 parent 36b89c9 commit 13b8336
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
import { UnlistenFn } from "@tauri-apps/api/event"
import _ from "lodash"
import type { NextPage } from "next"
import Image from "next/image"
import { useEffect, useState } from "react"
import { useEffect } from "react"
import {
listenToMonitorStatusUpdate,
onTextUpdate,
startListening,
} from "tauri-plugin-clipboard-api"

import Empty from "@/components/Empty"
import { ClipboardIcon, SearchIcon, TrashIcon } from "@/components/Icons"
import { SearchIcon } from "@/components/Icons"
import { ClipboardItem } from "@/components/TextCard"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Clip, useClipStore } from "@/store/clips.store";
import { useClipStore } from "@/store/clips.store"
const Home: NextPage = () => {
const { updateClips, clips } = useClipStore()
const [filteredClips, setFilteredClips] = useState([...clips])
const [q, setQ] = useState("")

let unlistenTextUpdate: UnlistenFn
let unlistenClipboard: () => Promise<void>
Expand Down Expand Up @@ -49,11 +46,6 @@ const Home: NextPage = () => {
}
}, [])

// function filterClips(text: string) {
// const filt = clips.filter((item) => item.includes(text.toLowerCase()))
// setFilteredClips(filt)
// }

return (
<Card className="w-full h-screen max-w-sm mx-auto grid flex-col">
<CardHeader className="px-6">
Expand All @@ -72,11 +64,7 @@ const Home: NextPage = () => {
className="w-full text-sm"
placeholder="Search the clipboard"
type="search"
onChange={(e) => {
// filterClips(e.target.value)
}}
/>
<p>{q}</p>
</div>
</CardHeader>
<CardContent className="p-0 flex flex-col overflow-auto">
Expand Down

0 comments on commit 13b8336

Please sign in to comment.