TootComposer: add toolbar & adjust layout
All checks were successful
/ depoly (push) Successful in 1m17s
All checks were successful
/ depoly (push) Successful in 1m17s
This commit is contained in:
parent
44860a5bb2
commit
44c9e55928
6 changed files with 192 additions and 56 deletions
|
@ -46,7 +46,6 @@ const TootBottomSheet: Component = (props) => {
|
|||
}>();
|
||||
const navigate = useNavigate();
|
||||
const time = createTimeSource();
|
||||
const [isInTyping, setInTyping] = createSignal(false);
|
||||
const acctText = () => decodeURIComponent(params.acct);
|
||||
const session = useSessionForAcctStr(acctText);
|
||||
|
||||
|
@ -70,12 +69,6 @@ const TootBottomSheet: Component = (props) => {
|
|||
return tootId;
|
||||
});
|
||||
|
||||
createEffect(() => {
|
||||
if (location.state?.tootReply) {
|
||||
setInTyping(true);
|
||||
}
|
||||
});
|
||||
|
||||
const [tootContextErrorUncaught, { refetch: refetchContext }] =
|
||||
createResource(
|
||||
() => [session().client, params.id] as const,
|
||||
|
@ -282,8 +275,6 @@ const TootBottomSheet: Component = (props) => {
|
|||
|
||||
<Show when={session()!.account}>
|
||||
<TootComposer
|
||||
isTyping={isInTyping()}
|
||||
onTypingChange={setInTyping}
|
||||
mentions={defaultMentions()}
|
||||
profile={session().account!}
|
||||
replyToDisplayName={toot()?.account?.displayName || ""}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue