
Highlighter is autolocked, so we shouldn't show the lock icon ### Change Type - [x] `patch` — Bug fix [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version ### Test Plan 1. Add a step-by-step description of how to test your PR here. 2. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - We no longer show the tool lock option for highlighter - it didn't do anything anyway
50 lines
975 B
Text
50 lines
975 B
Text
---
|
|
title: useDefaultHelpers
|
|
status: published
|
|
category: ui
|
|
group: Function
|
|
author: api
|
|
date: 06/23/2023
|
|
order: 63
|
|
---<Small>Public Function</Small>
|
|
|
|
|
|
|
|
|
|
##### Parameters
|
|
|
|
|
|
None
|
|
|
|
##### Returns
|
|
|
|
|
|
```ts
|
|
{
|
|
addToast: (
|
|
toast: Omit<import('./hooks/useToastsProvider').TLUiToast, 'id'> & {
|
|
id?: string | undefined
|
|
}
|
|
) => string
|
|
removeToast: (id: string) => string
|
|
clearToasts: () => void
|
|
addDialog: (
|
|
dialog: Omit<import('./hooks/useDialogsProvider').TLUiDialog, 'id'> & {
|
|
id?: string | undefined
|
|
}
|
|
) => string
|
|
clearDialogs: () => void
|
|
removeDialog: (id: string) => string
|
|
updateDialog: (
|
|
id: string,
|
|
newDialogData: Partial<import('./hooks/useDialogsProvider').TLUiDialog>
|
|
) => string
|
|
msg: (id: import('..').TLUiTranslationKey) => string
|
|
isMobile: boolean
|
|
}
|
|
```
|
|
|
|
##### References
|
|
|
|
[TLUiToast](/gen/ui/TLUiToast-interface), [TLUiDialog](/gen/ui/TLUiDialog-interface), [TLUiTranslationKey](/gen/ui/TLUiTranslationKey-type)
|
|
|