From 76bd1e16ab5b42d5faf73d81d907d29ff9fd7d09 Mon Sep 17 00:00:00 2001 From: "Specht, David" Date: Wed, 25 May 2022 00:00:27 +0200 Subject: [PATCH] feat: default Presentation eslint cleanup --- ts/Manager/SharedPresentationInput.tsx | 61 +++++++++++++------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/ts/Manager/SharedPresentationInput.tsx b/ts/Manager/SharedPresentationInput.tsx index 3faeb51..b076294 100644 --- a/ts/Manager/SharedPresentationInput.tsx +++ b/ts/Manager/SharedPresentationInput.tsx @@ -1,6 +1,5 @@ -import React from "react"; -import { useState } from "react"; -import { Room } from "../Common/Api"; +import React from 'react'; +import { Room } from '../Common/Api'; type Props = { id: string @@ -11,38 +10,38 @@ type Props = { const SharedPresentationInput: React.FC = ({ room, updateRoom, id }) => { function filepicker() { - OC.dialogs.filepicker(t('bbb', 'Default Presentation'), file => { - updateRoom({...room, presentationUserId: '', presentationPath: file}); - }, - ); - } + OC.dialogs.filepicker(t('bbb', 'Default Presentation'), file => { + updateRoom({...room, presentationUserId: '', presentationPath: file}); + }, + ); + } - function removeFile() { - updateRoom({...room, presentationUserId: '', presentationPath: ''}); - } + function removeFile() { + updateRoom({...room, presentationUserId: '', presentationPath: ''}); + } - function getAvatarUrl(userId) { - if (room.presentationUserId === null || room.presentationUserId === undefined) { - return ; - } + function getAvatarUrl() { + if (room.presentationUserId === null || room.presentationUserId === undefined) { + return ; + } - return (OC.generateUrl('/avatar/' + encodeURIComponent(room.presentationUserId) + '/' + 24, { - user: room.presentationUserId, - size: 24, - requesttoken: OC.requestToken, - })) - } + return (OC.generateUrl('/avatar/' + encodeURIComponent(room.presentationUserId) + '/' + 24, { + user: room.presentationUserId, + size: 24, + requesttoken: OC.requestToken, + })); + } - return( -
- -

- {room.presentationUserId} - {room.presentationPath} - -

-
- ); + return( +
+ +

+ {room.presentationUserId} + {room.presentationPath} + +

+
+ ); }; export default SharedPresentationInput;