refactor: tidy injections of dropdown
This commit is contained in:
parent
4a3cef9a01
commit
ef417f3ccf
5 changed files with 14 additions and 12 deletions
|
@ -1,5 +1,9 @@
|
|||
import { InjectionKeyFontSize } from '~/constants/symbols'
|
||||
import { InjectionKeyDropdownContext, InjectionKeyFontSize } from '~/constants/symbols'
|
||||
|
||||
export function useFontSizeRef() {
|
||||
return inject(InjectionKeyFontSize)!
|
||||
}
|
||||
|
||||
export function useDropdownContext() {
|
||||
return inject(InjectionKeyDropdownContext, undefined)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue