feat: Add option to show Send button on Desktop (#628)

This commit is contained in:
Jan
2022-05-23 22:19:55 +02:00
committed by GitHub
parent e46a6d55d6
commit 6fdd701b38
4 changed files with 30 additions and 1 deletions

View File

@@ -211,6 +211,24 @@ export const DisplayLigaturesShim = observer(() => {
);
});
/**
* Component providing a way to toggle showing the send button on desktop.
*/
export const ShowSendButtonShim = observer(() => {
const settings = useApplicationState().settings;
return (
<Checkbox
checked={settings.get("appearance:show_send_button") ?? false}
onChange={(v) => settings.set("appearance:show_send_button", v)}
description={
<Text id="app.settings.pages.appearance.appearance_options.show_send_desc" />
}>
<Text id="app.settings.pages.appearance.appearance_options.show_send" />
</Checkbox>
);
});
/**
* Component providing a way to toggle seasonal themes.
*/