From aa1990127c494dd3e03b74f15e1e44d144dd0621 Mon Sep 17 00:00:00 2001 From: Stefano Ricci Date: Mon, 14 Oct 2024 11:54:59 +0200 Subject: [PATCH] code cleanup (PropTypes) --- .../AcceptRequestPanel/AcceptRequestPanel.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/views/App/views/Users/UsersAccessRequest/AcceptRequestPanel/AcceptRequestPanel.js b/webapp/views/App/views/Users/UsersAccessRequest/AcceptRequestPanel/AcceptRequestPanel.js index c4bd5ce8bb..bf3940ccbd 100644 --- a/webapp/views/App/views/Users/UsersAccessRequest/AcceptRequestPanel/AcceptRequestPanel.js +++ b/webapp/views/App/views/Users/UsersAccessRequest/AcceptRequestPanel/AcceptRequestPanel.js @@ -1,4 +1,5 @@ import React from 'react' +import PropTypes from 'prop-types' import * as A from '@core/arena' import * as StringUtils from '@core/stringUtils' @@ -68,3 +69,8 @@ export const AcceptRequestPanel = (props) => { ) } + +AcceptRequestPanel.propTypes = { + userAccessRequest: PropTypes.object.isRequired, + onRequestAccepted: PropTypes.func.isRequired, +}