Update compose prompt for isual balance and to include image button

This commit is contained in:
Paul Frazee
2023-01-18 13:57:53 -06:00
parent 9d7f968cdd
commit 3c529e743f
7 changed files with 56 additions and 19 deletions
+5 -1
View File
@@ -40,10 +40,12 @@ const HITSLOP = {left: 10, top: 10, right: 10, bottom: 10}
export const ComposePost = observer(function ComposePost({
replyTo,
imagesOpen,
onPost,
onClose,
}: {
replyTo?: ComposerOpts['replyTo']
imagesOpen?: ComposerOpts['imagesOpen']
onPost?: ComposerOpts['onPost']
onClose: () => void
}) {
@@ -54,7 +56,9 @@ export const ComposePost = observer(function ComposePost({
const [processingState, setProcessingState] = useState('')
const [error, setError] = useState('')
const [text, setText] = useState('')
const [isSelectingPhotos, setIsSelectingPhotos] = useState(false)
const [isSelectingPhotos, setIsSelectingPhotos] = useState(
imagesOpen || false,
)
const [selectedPhotos, setSelectedPhotos] = useState<string[]>([])
// Using default import (React.use...) instead of named import (use...) to be able to mock store's data in jest environment