refactor(client): refactor ui components

This commit is contained in:
syuilo
2021-12-03 22:09:40 +09:00
parent 8223a069fe
commit fa36b88af4
7 changed files with 814 additions and 689 deletions

View File

@@ -556,7 +556,7 @@ export function contextMenu(items: any[], ev: MouseEvent) {
});
}
export function post(props: Record<string, any>) {
export function post(props: Record<string, any> = {}) {
return new Promise((resolve, reject) => {
// NOTE: MkPostFormDialogをdynamic importするとiOSでテキストエリアに自動フォーカスできない
// NOTE: ただ、dynamic importしない場合、MkPostFormDialogインスタンスが使いまわされ、