|
|
|
@ -38,8 +38,8 @@ export const DropdownPanel = (props: DropdownPanelProps) => { |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
update(calldata, header) |
|
|
|
|
}, [calldata, header]) |
|
|
|
|
update(calldata) |
|
|
|
|
}, [calldata]) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
message(dropdownMessage) |
|
|
|
@ -99,7 +99,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const update = function (calldata, header) { |
|
|
|
|
const update = function (calldata) { |
|
|
|
|
setState(prevState => { |
|
|
|
|
return { |
|
|
|
|
...prevState, |
|
|
|
@ -179,7 +179,7 @@ export const DropdownPanel = (props: DropdownPanelProps) => { |
|
|
|
|
} |
|
|
|
|
const title = <div className="py-0 px-1 title"> |
|
|
|
|
<div className={state.toggleDropdown ? 'icon fas fa-caret-down' : 'icon fas fa-caret-right'} onClick={handleToggle}></div> |
|
|
|
|
<div className="name" onClick={handleToggle}>{dropdownName}</div><span className="nameDetail" onClick={handleToggle}></span> |
|
|
|
|
<div className="name" onClick={handleToggle}>{dropdownName}</div><span className="nameDetail" onClick={handleToggle}>{ header }</span> |
|
|
|
|
<CopyToClipboard getContent={copyClipboard} /> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|