chore: use util methods, improvements

This commit is contained in:
retrozinndev
2025-07-23 22:22:18 -03:00
parent 7b158b8c89
commit d4c1fcf327
5 changed files with 68 additions and 149 deletions
+3 -8
View File
@@ -23,14 +23,9 @@ export type AskPopupProps = {
export function AskPopup(props: AskPopupProps): Astal.Window {
let accepted: boolean = false;
return <CustomDialog
namespace={"ask-popup"}
widthRequest={400}
heightRequest={250}
title={props.title ?? tr("ask_popup.title")}
text={props.text}
onFinish={() => !accepted && props.onCancel?.()}
options={[
return <CustomDialog namespace={"ask-popup"} widthRequest={400} heightRequest={250}
title={props.title ?? tr("ask_popup.title")} text={props.text}
onFinish={() => !accepted && props.onCancel?.()} options={[
{ text: props.cancelText ?? tr("cancel") },
{
text: props.acceptText ?? tr("accept"),