Skip to content

Commit

Permalink
mui fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Nov 22, 2024
1 parent 84dc70b commit a3a31a0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
19 changes: 11 additions & 8 deletions packages/ui/src/components/EasySetup/ManualExtrinsic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,18 @@ const ManualExtrinsic = ({
label={`${paramField.name}${paramField.optional ? ' (optional)' : ''}`}
value={inputParams[ind] ? inputParams[ind].value : ''}
onChange={(event) => onParamChange(event, { ind, paramField })}
InputProps={{
endAdornment: isTypeBalanceWithBalanceCall(
paramField.typeName,
`${palletRpc}.${callable}`
) && (
<InputAdornment position="end">{chainInfo?.tokenSymbol || ''}</InputAdornment>
)
slotProps={{
input: {
endAdornment: isTypeBalanceWithBalanceCall(
paramField.typeName,
`${palletRpc}.${callable}`
) && (
<InputAdornment position="end">{chainInfo?.tokenSymbol || ''}</InputAdornment>
)
},

htmlInput: { 'data-cy': `param-input-${paramField.name}` }
}}
inputProps={{ 'data-cy': `param-input-${paramField.name}` }}
/>
</li>
)
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/src/components/library/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ const Autocomplete = <
renderOption={renderOption}
popupIcon={<HiOutlineChevronDown />}
renderInput={renderInput}
PopperComponent={PopperStyled}
{...props}
slots={{
popper: PopperStyled
}}
/>
</AutocompleteWrapper>
)
Expand Down
27 changes: 16 additions & 11 deletions packages/ui/src/components/select/MultiProxySelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,23 @@ const MultiProxySelection = ({ className, testId = '' }: Props) => {
{...params}
inputRef={ref}
label=""
InputProps={{
...params.InputProps,
startAdornment: addressToShow && (
<InputAdornment position="start">
<IdenticonBadge
address={addressToShow}
badge={isSelectedProxy ? AccountBadge.PURE : AccountBadge.MULTI}
/>
</InputAdornment>
)
slotProps={{
input: {
...params.InputProps,
startAdornment: addressToShow && (
<InputAdornment position="start">
<IdenticonBadge
address={addressToShow}
badge={isSelectedProxy ? AccountBadge.PURE : AccountBadge.MULTI}
/>
</InputAdornment>
)
},
htmlInput: {
...params.inputProps,
'data-cy': `input-select-multiproxy-${testId}`
}
}}
inputProps={{ ...params.inputProps, 'data-cy': `input-select-multiproxy-${testId}` }}
onKeyDown={handleSpecialKeys}
/>
)
Expand Down

0 comments on commit a3a31a0

Please sign in to comment.