feat: integrate nstart (#33)
This commit is contained in:
parent
7daa566cec
commit
a264b747e7
15 changed files with 154 additions and 47 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import PostEditor from '@/components/PostEditor'
|
||||
import { useNostr } from '@/providers/NostrProvider'
|
||||
import { PencilLine } from 'lucide-react'
|
||||
import { useState } from 'react'
|
||||
import BottomNavigationBarItem from './BottomNavigationBarItem'
|
||||
|
||||
export default function PostButton() {
|
||||
const { checkLogin } = useNostr()
|
||||
const [open, setOpen] = useState(false)
|
||||
|
||||
return (
|
||||
|
|
@ -11,7 +13,9 @@ export default function PostButton() {
|
|||
<BottomNavigationBarItem
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
setOpen(true)
|
||||
checkLogin(() => {
|
||||
setOpen(true)
|
||||
})
|
||||
}}
|
||||
>
|
||||
<PencilLine />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue