From 20193ad7fed0f8ccb54b56424820ea431a9fc1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 5 Feb 2021 08:16:06 +0100 Subject: [PATCH] Added LayoutPropType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/settings/Layout.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/settings/Layout.ts b/src/settings/Layout.ts index e8d6e67797..3a42b2b510 100644 --- a/src/settings/Layout.ts +++ b/src/settings/Layout.ts @@ -14,8 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. */ +import PropTypes from 'prop-types'; + /* TODO: This should be later reworked into something more generic */ export enum Layout { IRC = "irc", Group = "group" } + +/* We need this because multiple components are still using JavaScript */ +export const LayoutPropType = PropTypes.oneOf(Object.values(Layout));