summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2024-02-14 15:09:02 +0100
committerOskar Nyberg <oskar@mullvad.net>2024-02-15 16:04:29 +0100
commit7724aa427342dd6aa41b2211bf2b8f182cbdada3 (patch)
treed05a1961121c93d178b3e83399c5b1d339b1e3a0 /gui
parentc9563aff223b26a424080fd94d1e5820c1471c27 (diff)
downloadmullvadvpn-7724aa427342dd6aa41b2211bf2b8f182cbdada3.tar.xz
mullvadvpn-7724aa427342dd6aa41b2211bf2b8f182cbdada3.zip
Pass info button title to modal
Diffstat (limited to 'gui')
-rw-r--r--gui/src/renderer/components/InfoButton.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/src/renderer/components/InfoButton.tsx b/gui/src/renderer/components/InfoButton.tsx
index 889437786f..e17e7b87b8 100644
--- a/gui/src/renderer/components/InfoButton.tsx
+++ b/gui/src/renderer/components/InfoButton.tsx
@@ -37,6 +37,7 @@ export function InfoIcon(props: IInfoIconProps) {
export interface IInfoButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
message?: string | Array<string>;
children?: React.ReactNode;
+ title?: string;
size?: number;
tintColor?: string;
tintHoverColor?: string;
@@ -56,6 +57,7 @@ export default function InfoButton(props: IInfoButtonProps) {
</StyledInfoButton>
<ModalAlert
isOpen={isOpen}
+ title={props.title}
message={props.message}
type={ModalAlertType.info}
buttons={[