fix unrelated formatting errors

This commit is contained in:
vivganes 2023-04-17 18:40:04 +05:30
parent c0df9898a4
commit 8daece2a13
2 changed files with 3 additions and 14 deletions

View File

@ -52,19 +52,8 @@ export function NoteCreator() {
const { formatMessage } = useIntl(); const { formatMessage } = useIntl();
const publisher = useEventPublisher(); const publisher = useEventPublisher();
const uploader = useFileUpload(); const uploader = useFileUpload();
const { const { note, zapForward, sensitive, pollOptions, replyTo, otherEvents, preview, active, show, showAdvanced, error } =
note, useSelector((s: RootState) => s.noteCreator);
zapForward,
sensitive,
pollOptions,
replyTo,
otherEvents,
preview,
active,
show,
showAdvanced,
error,
} = useSelector((s: RootState) => s.noteCreator);
const [uploadInProgress, setUploadInProgress] = useState(false); const [uploadInProgress, setUploadInProgress] = useState(false);
const dispatch = useDispatch(); const dispatch = useDispatch();

View File

@ -23,7 +23,7 @@ const InitState: NoteCreatorStore = {
showAdvanced: false, showAdvanced: false,
zapForward: "", zapForward: "",
sensitive: "", sensitive: "",
otherEvents: [] otherEvents: [],
}; };
const NoteCreatorSlice = createSlice({ const NoteCreatorSlice = createSlice({