Skip to content

Commit 166d77d

Browse files
committed
eslint
1 parent 6e567eb commit 166d77d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main/webapp/ui/src/eln/gallery/components/MainPanel.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ const GridView = observer(
374374
({
375375
listing,
376376
}: {|
377-
listing: | {| tag: "empty", reason: string |}
377+
listing:
378+
| {| tag: "empty", reason: string |}
378379
| {| tag: "list", list: $ReadOnlyArray<GalleryFile> |},
379380
|}) => {
380381
const dndContext = useDndContext();
@@ -937,7 +938,8 @@ type GalleryMainPanelArgs = {|
937938
clearPath: () => void,
938939
galleryListing: FetchingData.Fetched<
939940
| {| tag: "empty", reason: string |}
940-
| {| tag: "list", list: $ReadOnlyArray<GalleryFile> |}>,
941+
| {| tag: "list", list: $ReadOnlyArray<GalleryFile> |}
942+
>,
941943
folderId: FetchingData.Fetched<Id>,
942944
refreshListing: () => void,
943945
sortOrder: "DESC" | "ASC",

src/main/webapp/ui/src/eln/gallery/useGalleryListing.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function getIconPathForExtension(extension: string) {
129129
txt: "/images/icons/txt.png",
130130
text: "/images/icons/txt.png",
131131
md: "/images/icons/txt.png",
132-
}: {[string]: string})[ext] ?? "/images/icons/unknownDocument.png"
132+
}: { [string]: string })[ext] ?? "/images/icons/unknownDocument.png"
133133
);
134134
}
135135

@@ -179,7 +179,8 @@ export function useGalleryListing({
179179
|}): {|
180180
galleryListing: FetchingData.Fetched<
181181
| {| tag: "empty", reason: string |}
182-
| {| tag: "list", list: $ReadOnlyArray<GalleryFile> |}>,
182+
| {| tag: "list", list: $ReadOnlyArray<GalleryFile> |}
183+
>,
183184
refreshListing: () => void,
184185
path: $ReadOnlyArray<GalleryFile>,
185186
clearPath: () => void,

0 commit comments

Comments
 (0)