From 51def5775dc8ffc97686f590438671ec4d946069 Mon Sep 17 00:00:00 2001 From: Manuel Stahl Date: Sat, 3 Feb 2024 13:56:33 +0100 Subject: [PATCH] Replace `Fragment` with short form https://legacy.reactjs.org/docs/fragments.html#short-syntax Change-Id: Ib1af57fc5e87ded8c1fee38dcbd60fae8621cb07 --- src/components/RoomDirectory.js | 8 ++------ src/components/ServerNotices.js | 10 +++++----- src/components/devices.js | 6 +++--- src/components/media.js | 14 +++++++------- src/components/rooms.js | 6 +++--- src/components/users.js | 6 +++--- 6 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/components/RoomDirectory.js b/src/components/RoomDirectory.js index aac42df..84d4027 100644 --- a/src/components/RoomDirectory.js +++ b/src/components/RoomDirectory.js @@ -1,4 +1,4 @@ -import React, { Fragment } from "react"; +import React from "react"; import FolderSharedIcon from "@mui/icons-material/FolderShared"; import { BooleanField, @@ -130,11 +130,7 @@ export const RoomDirectorySaveButton = () => { ); }; -const RoomDirectoryBulkActionButtons = () => ( - - - -); +const RoomDirectoryBulkActionButtons = () => ; const RoomDirectoryListActions = () => ( diff --git a/src/components/ServerNotices.js b/src/components/ServerNotices.js index 631a849..751bada 100644 --- a/src/components/ServerNotices.js +++ b/src/components/ServerNotices.js @@ -1,4 +1,4 @@ -import React, { Fragment, useState } from "react"; +import React, { useState } from "react"; import { Button, SaveButton, @@ -93,7 +93,7 @@ export const ServerNoticeButton = () => { }; return ( - + <>