File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
src/apps/copilots/src/pages Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ const tableColumns: TableColumn<CopilotOpportunity>[] = [
104
104
label : 'Payment' ,
105
105
propertyName : 'paymentType' ,
106
106
renderer : ( copilotOpportunity : CopilotOpportunity ) => (
107
- < div >
107
+ < div className = { styles . payment } >
108
108
{ copilotOpportunity . paymentType === 'standard'
109
- ? copilotOpportunity . paymentType : copilotOpportunity . otherPaymentType }
109
+ ? copilotOpportunity . paymentType : copilotOpportunity . otherPaymentType . slice ( 0 , 8 ) }
110
110
</ div >
111
111
) ,
112
112
type : 'element' ,
Original file line number Diff line number Diff line change 39
39
.type {
40
40
white-space : nowrap ;
41
41
}
42
+
43
+ .payment {
44
+ white-space : nowrap ;
45
+ }
46
+
Original file line number Diff line number Diff line change @@ -276,6 +276,11 @@ const CopilotRequestForm: FC<{}> = () => {
276
276
key : 'otherPaymentType' ,
277
277
message : 'Field cannot be left empty' ,
278
278
} ,
279
+ {
280
+ condition : formValues . otherPaymentType . trim ( ) . length > 8 ,
281
+ key : 'otherPaymentType' ,
282
+ message : 'Field only allows 8 characters' ,
283
+ } ,
279
284
]
280
285
281
286
fieldValidations . forEach (
You can’t perform that action at this time.
0 commit comments