Browse Source

changed button props type

pull/3/head landing-blocks_1.0.26
remorses 11 months ago
parent
commit
9b214051a3
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      .gitignore
  2. +2
    -2
      landing-blocks/src/Button.tsx

+ 2
- 0
.gitignore View File

@ -81,3 +81,5 @@ typings/
# FuseBox cache
.fusebox/
.now

+ 2
- 2
landing-blocks/src/Button.tsx View File

@ -2,7 +2,7 @@
import { css, jsx } from '@emotion/core'
import { Button as B, ButtonProps as ButtonProps_ } from '@chakra-ui/core'
import Color from 'color-js'
import React, { forwardRef, Fragment, useMemo } from 'react'
import React, { forwardRef, Fragment, useMemo, FC } from 'react'
import { useColor } from './support'
import wobble from './animations/wobble'
import shake from './animations/shake'
@ -21,7 +21,7 @@ const animations = {
shake,
}
export const Button = forwardRef(
export const Button: FC<ButtonProps> = forwardRef(
({ bg = 'primary', animate, ...props }: ButtonProps, ref) => {
const realBg = useColor(bg)
const lightness = Color(realBg as any).getLightness()

Loading…
Cancel
Save