Browse Source

landing-blocks/src: using faded again

master
remorses 8 months ago
parent
commit
90a399d3b2
2 changed files with 5 additions and 6 deletions
  1. +4
    -5
      landing-blocks/src/hooks.tsx
  2. +1
    -1
      landing-blocks/src/svgs/index.tsx

+ 4
- 5
landing-blocks/src/hooks.tsx View File

@ -1,5 +1,5 @@
import { useColorMode } from '@chakra-ui/react'
// import { Faded } from 'baby-i-am-faded'
import { Faded } from 'baby-i-am-faded'
// import { Faded, FadedProps } from 'baby-i-am-faded'
import React, { ComponentType, ElementType, useMemo } from 'react'
import 'intersection-observer'
@ -17,10 +17,9 @@ export function useFaded({
triggerOnce,
children: [],
}
return 'div' as any
// return (props) => {
// return <Faded {...defaultProps} {...props} />
// }
return (props) => {
return <Faded {...defaultProps} {...props} />
}
}, [animate, triggerOnce])
return { Faded: animate ? component : 'div' }

+ 1
- 1
landing-blocks/src/svgs/index.tsx View File

@ -2,4 +2,4 @@ export { default as FontAwesomeAlt } from './FontAwesomeAlt'
export { default as Wire1 } from './Wire1'
export { default as Wire2 } from './Wire2'
export { default as Wire3 } from './Wire3'
export { default as WireLong } from './WireLong'
export { default as WireLong } from './WireLong'

Loading…
Cancel
Save