Prevent routing to "ExtensionInfo" on extension list action button click
This commit is contained in:
@@ -144,7 +144,10 @@ export function ExtensionCard(props: IProps) {
|
|||||||
color: installedState === InstalledState.OBSOLETE ? 'red' : 'inherit',
|
color: installedState === InstalledState.OBSOLETE ? 'red' : 'inherit',
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
}}
|
}}
|
||||||
onClick={() => handleButtonClick()}
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
handleButtonClick();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t(INSTALLED_STATE_TO_TRANSLATION_KEY_MAP[installedState])}
|
{t(INSTALLED_STATE_TO_TRANSLATION_KEY_MAP[installedState])}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user