Merge remote-tracking branch 'origin/develop' into fix/bottom-sheet-modal
This commit is contained in:
commit
159913fe97
@ -1,5 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
// import { Footer } from "./parts/Footer";
|
import { Footer } from "./parts/Footer";
|
||||||
import Header from "./parts/Header";
|
import Header from "./parts/Header";
|
||||||
type Props = {
|
type Props = {
|
||||||
header?: React.ReactElement;
|
header?: React.ReactElement;
|
||||||
|
@ -38,9 +38,6 @@ export const Button: React.FC<ButtonProps> & ButtonExtentions = ({
|
|||||||
children,
|
children,
|
||||||
...props
|
...props
|
||||||
}) => {
|
}) => {
|
||||||
console.log(
|
|
||||||
React.isValidElement(children) && React.Children.only(children).type
|
|
||||||
);
|
|
||||||
const isOnlyIcon =
|
const isOnlyIcon =
|
||||||
children &&
|
children &&
|
||||||
React.isValidElement(children) &&
|
React.isValidElement(children) &&
|
||||||
@ -51,11 +48,11 @@ export const Button: React.FC<ButtonProps> & ButtonExtentions = ({
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
//TODO change on click event
|
//TODO change on click event
|
||||||
onClick={!disabled ? () => alert("Click") : undefined}
|
onClick={!disabled ? () => {} : undefined}
|
||||||
className={classNames([
|
className={classNames([
|
||||||
"flex content-center justify-between",
|
"flex content-center justify-between",
|
||||||
"text-center",
|
"text-center",
|
||||||
{ padding: defaultStyle },
|
padding,
|
||||||
"rounded",
|
"rounded",
|
||||||
{
|
{
|
||||||
"!cursor-default": disabled,
|
"!cursor-default": disabled,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user