mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
refactor(public): remove unused me
This commit is contained in:
@@ -21,7 +21,6 @@ export function PublicHomeRoute() {
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const raw_graph_data = React.use(graph_data_promise) as GraphNode[]
|
const raw_graph_data = React.use(graph_data_promise) as GraphNode[]
|
||||||
const [filterQuery, setFilterQuery] = React.useState<string>("")
|
const [filterQuery, setFilterQuery] = React.useState<string>("")
|
||||||
const { me } = useAccount()
|
|
||||||
|
|
||||||
const handleTopicSelect = (topicName: string) => {
|
const handleTopicSelect = (topicName: string) => {
|
||||||
router.push(`/${topicName}`)
|
router.push(`/${topicName}`)
|
||||||
@@ -41,11 +40,7 @@ export function PublicHomeRoute() {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="absolute left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 transform max-sm:px-5">
|
<div className="absolute left-1/2 top-1/2 w-full max-w-md -translate-x-1/2 -translate-y-1/2 transform max-sm:px-5">
|
||||||
<motion.div
|
<motion.div initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5 }}>
|
||||||
initial={{ opacity: 0, y: 20 }}
|
|
||||||
animate={{ opacity: 1, y: 0 }}
|
|
||||||
transition={{ duration: 0.5 }}
|
|
||||||
>
|
|
||||||
<motion.h1
|
<motion.h1
|
||||||
className="mb-2 text-center text-3xl font-bold uppercase sm:mb-4 md:text-5xl"
|
className="mb-2 text-center text-3xl font-bold uppercase sm:mb-4 md:text-5xl"
|
||||||
initial={{ opacity: 0, y: -20 }}
|
initial={{ opacity: 0, y: -20 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user