v1.1.1
This commit is contained in:
@@ -21,9 +21,13 @@ import { useImageUploader } from '@utils/hooks/useUploader';
|
||||
import { sendNativeNotification } from '@utils/notification';
|
||||
|
||||
export function Composer() {
|
||||
const { publish } = usePublish();
|
||||
|
||||
const [status, setStatus] = useState<null | 'loading' | 'done'>(null);
|
||||
const [reply, clearReply] = useComposer((state) => [state.reply, state.clearReply]);
|
||||
|
||||
const upload = useImageUploader();
|
||||
|
||||
const editor = useEditor({
|
||||
extensions: [
|
||||
StarterKit.configure({
|
||||
@@ -56,9 +60,6 @@ export function Composer() {
|
||||
},
|
||||
});
|
||||
|
||||
const upload = useImageUploader();
|
||||
const { publish } = usePublish();
|
||||
|
||||
const uploadImage = async (file?: string) => {
|
||||
const image = await upload(file);
|
||||
if (image.url) {
|
||||
|
||||
Reference in New Issue
Block a user