From cd8557dd23c191bb33249557fb5bfb9639cbd191 Mon Sep 17 00:00:00 2001 From: Ryan Lynch Date: Tue, 16 Jul 2024 11:56:36 +0100 Subject: [PATCH] Adding tooltip for max loan --- src/components/MaxLoanInput/MaxLoanInput.tsx | 26 ++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/components/MaxLoanInput/MaxLoanInput.tsx b/src/components/MaxLoanInput/MaxLoanInput.tsx index 3c5c93e..b529f59 100644 --- a/src/components/MaxLoanInput/MaxLoanInput.tsx +++ b/src/components/MaxLoanInput/MaxLoanInput.tsx @@ -1,4 +1,9 @@ -import { ITextFieldStyles, TextField } from "@fluentui/react"; +import { + ITextFieldStyles, + Icon, + TextField, + TooltipHost, +} from "@fluentui/react"; export interface MaxLoanInputProps { maxLoan: number; @@ -17,7 +22,24 @@ export const MaxLoanInput: React.FC = ( return ( { + return ( +
+ Max Loan{" "} + + + +
+ ); + }} styles={defaultTextFieldStyles} value={maxLoan.toString()} onChange={(_e, newValue) => {