Add displayName to contexts (#8814)
This commit is contained in:
@@ -53,12 +53,14 @@ const TooltipContext = createContext<TooltipContextType>({
|
||||
visible: false,
|
||||
onVisibleChange: () => {},
|
||||
})
|
||||
TooltipContext.displayName = 'TooltipContext'
|
||||
|
||||
const TargetContext = createContext<TargetContextType>({
|
||||
targetMeasurements: undefined,
|
||||
setTargetMeasurements: () => {},
|
||||
shouldMeasure: false,
|
||||
})
|
||||
TargetContext.displayName = 'TargetContext'
|
||||
|
||||
export function Outer({
|
||||
children,
|
||||
|
||||
@@ -20,6 +20,7 @@ const TooltipContext = createContext<TooltipContextType>({
|
||||
position: 'bottom',
|
||||
onVisibleChange: () => {},
|
||||
})
|
||||
TooltipContext.displayName = 'TooltipContext'
|
||||
|
||||
export function Outer({
|
||||
children,
|
||||
|
||||
Reference in New Issue
Block a user