From ef7f7f9a2061ca29a34068f2cebd8617bc5b652b Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 2 Nov 2022 14:08:27 +0100 Subject: [PATCH] Fix copyright and hook name --- res/css/views/rooms/_EmojiButton.pcss | 16 ++++++++++++++++ res/css/views/rooms/_MessageComposerButton.pcss | 16 ++++++++++++++++ .../rooms/wysiwyg_composer/components/Editor.tsx | 2 +- .../hooks/{useIsExpended.ts => useIsExpanded.ts} | 0 4 files changed, 33 insertions(+), 1 deletion(-) rename src/components/views/rooms/wysiwyg_composer/hooks/{useIsExpended.ts => useIsExpanded.ts} (100%) diff --git a/res/css/views/rooms/_EmojiButton.pcss b/res/css/views/rooms/_EmojiButton.pcss index 544ecdfa73c..4d724d2d58a 100644 --- a/res/css/views/rooms/_EmojiButton.pcss +++ b/res/css/views/rooms/_EmojiButton.pcss @@ -1,3 +1,19 @@ +/* +Copyright 2022 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + @import "./_MessageComposerButton.pcss"; .mx_EmojiButton { diff --git a/res/css/views/rooms/_MessageComposerButton.pcss b/res/css/views/rooms/_MessageComposerButton.pcss index 81841165eb2..271d1435534 100644 --- a/res/css/views/rooms/_MessageComposerButton.pcss +++ b/res/css/views/rooms/_MessageComposerButton.pcss @@ -1,3 +1,19 @@ +/* +Copyright 2022 The Matrix.org Foundation C.I.C. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + @define-mixin composerButtonHighLight { background: rgba($accent, 0.25); /* make the icon the accent color too */ diff --git a/src/components/views/rooms/wysiwyg_composer/components/Editor.tsx b/src/components/views/rooms/wysiwyg_composer/components/Editor.tsx index 57e59132bb3..bb70571ea4f 100644 --- a/src/components/views/rooms/wysiwyg_composer/components/Editor.tsx +++ b/src/components/views/rooms/wysiwyg_composer/components/Editor.tsx @@ -16,7 +16,7 @@ limitations under the License. import React, { forwardRef, memo, ReactNode, RefObject } from 'react'; -import { useIsExpanded } from '../hooks/useIsExpended'; +import { useIsExpanded } from '../hooks/useIsExpanded'; const HEIGHT_BREAKING_POINT = 20; diff --git a/src/components/views/rooms/wysiwyg_composer/hooks/useIsExpended.ts b/src/components/views/rooms/wysiwyg_composer/hooks/useIsExpanded.ts similarity index 100% rename from src/components/views/rooms/wysiwyg_composer/hooks/useIsExpended.ts rename to src/components/views/rooms/wysiwyg_composer/hooks/useIsExpanded.ts