Fix review issues
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
Copyright 2020 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.
|
||||
*/
|
||||
|
||||
$app-background: #f4f4f4;
|
||||
$background: #ffffff;
|
||||
$foreground: #000000;
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
Copyright 2020 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.
|
||||
*/
|
||||
|
||||
@mixin error {
|
||||
color: $error;
|
||||
border-color: $error;
|
||||
|
||||
@@ -31,7 +31,7 @@ const Button: React.FC<
|
||||
IProps & React.RefAttributes<HTMLButtonElement>
|
||||
> = React.forwardRef(
|
||||
(
|
||||
{ onClick, children, flashChildren, className, ...restProps }: IProps,
|
||||
{ onClick, children, flashChildren, className, ...props }: IProps,
|
||||
ref: React.Ref<HTMLButtonElement>
|
||||
) => {
|
||||
const [wasClicked, setWasClicked] = React.useState(false);
|
||||
@@ -58,7 +58,7 @@ const Button: React.FC<
|
||||
className={classNames}
|
||||
onClick={wrappedOnClick}
|
||||
ref={ref}
|
||||
{...restProps}
|
||||
{...props}
|
||||
>
|
||||
{content}
|
||||
</button>
|
||||
|
||||
@@ -21,13 +21,10 @@ import "./TextButton.scss";
|
||||
|
||||
const TextButton: React.FC<React.ButtonHTMLAttributes<Element>> = ({
|
||||
className,
|
||||
...restProps
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<button
|
||||
className={classnames("textButton", className)}
|
||||
{...restProps}
|
||||
/>
|
||||
<button className={classnames("textButton", className)} {...props} />
|
||||
);
|
||||
};
|
||||
export default TextButton;
|
||||
|
||||
Reference in New Issue
Block a user