File tree 1 file changed +3
-3
lines changed
src/components/Tooltip/docs
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { FC } from 'react' ;
2
2
import * as React from 'react' ;
3
3
import styled from 'styled-components' ;
4
+ import { Placement } from '@popperjs/core/lib/enums' ;
4
5
import { RadioButton , Tooltip } from '../..' ;
5
6
import { Colors , MediaQueries } from '../../../essentials' ;
6
- import { TooltipPlacement } from '../TooltipPlacement' ;
7
7
8
8
const TargetSquare = styled . div `
9
9
background: ${ Colors . BUMPY_MAGENTA_50 } ;
@@ -35,9 +35,9 @@ const ExampleContainer = styled.div`
35
35
` ;
36
36
37
37
const TooltipPlacementExample : FC = ( ) => {
38
- const [ placement , setPlacement ] = React . useState < TooltipPlacement > ( 'top-center ' ) ;
38
+ const [ placement , setPlacement ] = React . useState < Placement > ( 'top' ) ;
39
39
40
- const availablePlacements : TooltipPlacement [ ] = [
40
+ const availablePlacements : Placement [ ] = [
41
41
'top-start' ,
42
42
'top-end' ,
43
43
'bottom-start' ,
You can’t perform that action at this time.
0 commit comments