Skip to content

Commit

Permalink
keep current behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Robiquet committed Oct 6, 2023
1 parent 69f5484 commit c2c734a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/settings/FeePayingAssetSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const FeePayingAssetSelect = () => {
<AssetSelect
options={options}
selectedOption={assetSelection}
showArrowRight={true}
onChange={(option) => {
setAsset(option);
setShowSaved(true);
Expand Down
4 changes: 3 additions & 1 deletion components/ui/AssetSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,18 @@ export type AssetSelectProps = {
options: AssetOption[];
selectedOption?: AssetOption;
onChange: (value: AssetOption) => void;
showArrowRight?: boolean;
};

const AssetSelect: React.FC<AssetSelectProps> = ({
options,
selectedOption,
onChange,
showArrowRight = false,
}) => {
return (
<Select
className="h-full !static pr-4"
className={`h-full !static ${showArrowRight ? "pr-4" : "w-34"}`}
isSearchable={false}
options={options}
unstyled={true}
Expand Down

0 comments on commit c2c734a

Please sign in to comment.