Merge remote-tracking branch 'origin/develop' into fix/bottom-sheet-modal

This commit is contained in:
decamel 2022-08-23 13:43:03 +03:00
commit 159913fe97
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import React from "react";
// import { Footer } from "./parts/Footer";
import { Footer } from "./parts/Footer";
import Header from "./parts/Header";
type Props = {
header?: React.ReactElement;

View File

@ -38,9 +38,6 @@ export const Button: React.FC<ButtonProps> & ButtonExtentions = ({
children,
...props
}) => {
console.log(
React.isValidElement(children) && React.Children.only(children).type
);
const isOnlyIcon =
children &&
React.isValidElement(children) &&
@ -51,11 +48,11 @@ export const Button: React.FC<ButtonProps> & ButtonExtentions = ({
return (
<button
//TODO change on click event
onClick={!disabled ? () => alert("Click") : undefined}
onClick={!disabled ? () => {} : undefined}
className={classNames([
"flex content-center justify-between",
"text-center",
{ padding: defaultStyle },
padding,
"rounded",
{
"!cursor-default": disabled,