mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Used determenistic id for the button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
453f9926c8
commit
db91458a52
@ -42,7 +42,7 @@ export function UpdateButton({ warningLevel, update }: UpdateButtonProps) {
|
|||||||
<>
|
<>
|
||||||
<button
|
<button
|
||||||
data-testid="update-button"
|
data-testid="update-button"
|
||||||
id={id}
|
id="update-lens-button"
|
||||||
className={cssNames(styles.updateButton, {
|
className={cssNames(styles.updateButton, {
|
||||||
[styles.warningHigh]: warningLevel === "high",
|
[styles.warningHigh]: warningLevel === "high",
|
||||||
[styles.warningMedium]: warningLevel === "medium",
|
[styles.warningMedium]: warningLevel === "medium",
|
||||||
@ -55,7 +55,7 @@ export function UpdateButton({ warningLevel, update }: UpdateButtonProps) {
|
|||||||
</button>
|
</button>
|
||||||
<Menu
|
<Menu
|
||||||
usePortal
|
usePortal
|
||||||
htmlFor={id}
|
htmlFor="update-lens-button"
|
||||||
isOpen={opened}
|
isOpen={opened}
|
||||||
close={toggle}
|
close={toggle}
|
||||||
open={noop}
|
open={noop}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user