Put back edit following button
This commit is contained in:
parent
f809acd6fd
commit
4e83aa1431
|
@ -1,3 +1,4 @@
|
||||||
|
import clsx from 'clsx'
|
||||||
import { PencilIcon } from '@heroicons/react/outline'
|
import { PencilIcon } from '@heroicons/react/outline'
|
||||||
import { User } from 'common/user'
|
import { User } from 'common/user'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
|
@ -42,7 +43,13 @@ export function EditFollowingButton(props: { user: User; className?: string }) {
|
||||||
const followerIds = useFollowers(user.id)
|
const followerIds = useFollowers(user.id)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TextButton className={className} onClick={() => setIsOpen(true)}>
|
<div
|
||||||
|
className={clsx(
|
||||||
|
className,
|
||||||
|
'btn btn-sm btn-ghost cursor-pointer gap-2 whitespace-nowrap text-sm normal-case text-gray-700'
|
||||||
|
)}
|
||||||
|
onClick={() => setIsOpen(true)}
|
||||||
|
>
|
||||||
<PencilIcon className="inline h-4 w-4" />
|
<PencilIcon className="inline h-4 w-4" />
|
||||||
Following
|
Following
|
||||||
<FollowsDialog
|
<FollowsDialog
|
||||||
|
@ -53,7 +60,7 @@ export function EditFollowingButton(props: { user: User; className?: string }) {
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
setIsOpen={setIsOpen}
|
setIsOpen={setIsOpen}
|
||||||
/>
|
/>
|
||||||
</TextButton>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user