fix(#ott2955): package lock fixkeep-around/61a2661a1c7b0f958a65795b5393822fb1d16524
parent
0eaff38e01
commit
bc0c1a389f
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@ |
||||
import { UserFavorite } from 'requests' |
||||
|
||||
import { Name } from 'features/Name' |
||||
|
||||
import { TooltipWrapper } from './styled' |
||||
|
||||
type TooltipBlockProps = { |
||||
favorite: UserFavorite, |
||||
topPosition: number, |
||||
} |
||||
|
||||
export const FavoritesToolip = ({ |
||||
favorite: { |
||||
info, |
||||
}, |
||||
topPosition, |
||||
}: TooltipBlockProps) => ( |
||||
<TooltipWrapper top={topPosition}> |
||||
<Name nameObj={info} /> |
||||
</TooltipWrapper> |
||||
) |
||||
@ -0,0 +1,20 @@ |
||||
import styled from 'styled-components/macro' |
||||
|
||||
type TProps = { |
||||
top?: number, |
||||
} |
||||
|
||||
export const TooltipWrapper = styled.div<TProps>` |
||||
background-color: #fff; |
||||
padding: 0 6px; |
||||
position: fixed; |
||||
top: ${({ top }) => top && `${top - 4}px`}; |
||||
left: 4.2rem; |
||||
border-radius: 6px; |
||||
z-index: 5; |
||||
line-height: 1.0625rem; |
||||
color: #000; |
||||
font-weight: 400; |
||||
font-size: 0.6875rem; |
||||
white-space: nowrap; |
||||
` |
||||
Loading…
Reference in new issue