Skip to content

Commit 89dc3ea

Browse files
committed
feat: Remove legacy UI fallback now that all Etherscan-compatible sites use the updated UI
1 parent 32c10c1 commit 89dc3ea

16 files changed

Lines changed: 199 additions & 1030 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v5.11.2
2+
3+
- [update] Remove legacy UI fallback now that all Etherscan-compatible sites use the updated UI
4+
15
### v5.11.1
26

37
- [fix] Adapt private variables feature to updated Etherscan UI

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metasuites",
3-
"version": "5.11.1",
3+
"version": "5.11.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/blocksecteam/metasuites.git"

src/content/etherscan/components/EthContractVariableLogBtn/index.module.less renamed to src/content/etherscan/components/ContractVariableLogBtn/index.module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '@common/styles/common.less';
22

3-
.ethContractVariableLogBtn {
3+
.primary {
44
background-color: @primary-color !important;
55
border-color: transparent !important;
66
color: #fff !important;

src/content/etherscan/components/ContractVariableLogBtn/index.tsx

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@ import cls from 'classnames'
44
import { TokenSymbol } from '@common/components'
55
import type { BaseComponent } from '@common/types'
66

7+
import styles from './index.module.less'
8+
79
interface Props extends BaseComponent {
810
onClick: (errorCallback: () => void) => void
11+
variant?: 'inline' | 'primary'
912
}
1013

11-
const ContractVariableLogBtn: FC<Props> = ({ onClick, className, style }) => {
14+
const ContractVariableLogBtn: FC<Props> = ({
15+
onClick,
16+
className,
17+
style,
18+
variant = 'inline'
19+
}) => {
1220
const [error, setError] = useState(false)
1321
const timer = useRef<NodeJS.Timeout>()
1422

@@ -22,14 +30,16 @@ const ContractVariableLogBtn: FC<Props> = ({ onClick, className, style }) => {
2230
})
2331
}
2432

33+
const variantClassName =
34+
variant === 'primary'
35+
? cls(styles.primary, 'btn btn-sm p-2 px-4')
36+
: 'write-btn btn btn-primary border md-btn-primary'
37+
2538
return (
2639
<>
2740
<button
2841
type="button"
29-
className={cls(
30-
'write-btn btn btn-primary border md-btn-primary',
31-
className
32-
)}
42+
className={cls(variantClassName, className)}
3343
style={style}
3444
onClick={handleClick}
3545
>

src/content/etherscan/components/EthContractVariableLogBtn/index.tsx

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/content/etherscan/components/EthFormatParamBtn/index.module.less

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/content/etherscan/components/EthFormatParamBtn/index.tsx

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)