diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-02-14 15:09:02 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-02-15 16:04:29 +0100 |
| commit | 7724aa427342dd6aa41b2211bf2b8f182cbdada3 (patch) | |
| tree | d05a1961121c93d178b3e83399c5b1d339b1e3a0 /gui | |
| parent | c9563aff223b26a424080fd94d1e5820c1471c27 (diff) | |
| download | mullvadvpn-7724aa427342dd6aa41b2211bf2b8f182cbdada3.tar.xz mullvadvpn-7724aa427342dd6aa41b2211bf2b8f182cbdada3.zip | |
Pass info button title to modal
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/src/renderer/components/InfoButton.tsx | 2 |
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={[ |
