Add displayName to contexts (#8814)

This commit is contained in:
Samuel Newman
2025-08-14 01:12:31 +03:00
committed by GitHub
parent 275fece3e3
commit b2c56cbd6d
89 changed files with 173 additions and 28 deletions
+3
View File
@@ -26,10 +26,12 @@ interface IDialogControlContext {
}
const DialogContext = React.createContext<IDialogContext>({} as IDialogContext)
DialogContext.displayName = 'DialogContext'
const DialogControlContext = React.createContext<IDialogControlContext>(
{} as IDialogControlContext,
)
DialogControlContext.displayName = 'DialogControlContext'
/**
* The number of dialogs that are fully expanded. This is used to determine the background color of the status bar
@@ -107,3 +109,4 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
</DialogContext.Provider>
)
}
Provider.displayName = 'DialogsProvider'