diff --git a/starsky/starsky/clientapp/src/components/atoms/file-hash-image/pan-and-zoom-image.tsx b/starsky/starsky/clientapp/src/components/atoms/file-hash-image/pan-and-zoom-image.tsx
index 2cdb7cc669..5d83092545 100644
--- a/starsky/starsky/clientapp/src/components/atoms/file-hash-image/pan-and-zoom-image.tsx
+++ b/starsky/starsky/clientapp/src/components/atoms/file-hash-image/pan-and-zoom-image.tsx
@@ -161,7 +161,6 @@ const PanAndZoomImage = ({ src, id, ...props }: IPanAndZoomImage) => {
= ({
= memo((props) => {
{
setError(false);
diff --git a/starsky/starsky/clientapp/src/components/atoms/modal/modal.tsx b/starsky/starsky/clientapp/src/components/atoms/modal/modal.tsx
index 94f1d60c3a..f296a24cdf 100644
--- a/starsky/starsky/clientapp/src/components/atoms/modal/modal.tsx
+++ b/starsky/starsky/clientapp/src/components/atoms/modal/modal.tsx
@@ -68,7 +68,6 @@ export default function Modal({
return ReactDOM.createPortal(
ifModalOpenHandleExit(event, handleExit)}
- role="presentation"
onKeyDown={(event) => {
event.key === "Enter" && handleExit();
}}
diff --git a/starsky/starsky/clientapp/src/components/molecules/menu-inline-search/menu-inline-search.tsx b/starsky/starsky/clientapp/src/components/molecules/menu-inline-search/menu-inline-search.tsx
index 969f404e05..19c0a0e347 100644
--- a/starsky/starsky/clientapp/src/components/molecules/menu-inline-search/menu-inline-search.tsx
+++ b/starsky/starsky/clientapp/src/components/molecules/menu-inline-search/menu-inline-search.tsx
@@ -102,7 +102,6 @@ const MenuInlineSearch: React.FunctionComponent
= (
setFormFocus(true)}
- role="presentation"
>
-
diff --git a/starsky/starsky/clientapp/src/components/molecules/menu-option-move-to-trash/menu-option-move-to-trash.tsx b/starsky/starsky/clientapp/src/components/molecules/menu-option-move-to-trash/menu-option-move-to-trash.tsx
index 48e1600ad7..a0561da16a 100644
--- a/starsky/starsky/clientapp/src/components/molecules/menu-option-move-to-trash/menu-option-move-to-trash.tsx
+++ b/starsky/starsky/clientapp/src/components/molecules/menu-option-move-to-trash/menu-option-move-to-trash.tsx
@@ -52,6 +52,9 @@ const MenuOptionMoveToTrash: React.FunctionComponent {
);
}
- function updateProgressByClick(event: React.MouseEvent) {
- if (!videoRef.current || !event.target) return;
+ function updateProgressByClick(event?: React.MouseEvent) {
+ if (!videoRef.current || !event?.target) return;
const mousePosition = getMousePosition(event);
const result = isNaN(mousePosition)
@@ -271,9 +271,11 @@ const DetailViewMp4: React.FunctionComponent = memo(() => {
diff --git a/starsky/starsky/clientapp/src/components/organisms/menu-detail-view/menu-detail-view.tsx b/starsky/starsky/clientapp/src/components/organisms/menu-detail-view/menu-detail-view.tsx
index 717c932c00..c5f53c84ce 100644
--- a/starsky/starsky/clientapp/src/components/organisms/menu-detail-view/menu-detail-view.tsx
+++ b/starsky/starsky/clientapp/src/components/organisms/menu-detail-view/menu-detail-view.tsx
@@ -49,11 +49,7 @@ function GetHeaderClass(
return "header header--main header--edit";
}
} else {
- if (isMarkedAsDeleted) {
- return "header header--main header--deleted";
- } else {
- return "header header--main";
- }
+ return isMarkedAsDeleted ? "header header--main header--deleted" : "header header--main";
}
}