fix(nc-gui): type issues

This commit is contained in:
Wing-Kam Wong
2022-12-02 14:55:02 +08:00
parent 1d66492a8c
commit b1b362366e
41 changed files with 190 additions and 136 deletions

View File

@@ -1,5 +1,5 @@
import { ViewTypes } from 'nocodb-sdk'
import { themeV2Colors } from '~/utils'
import { themeV2Colors } from '#imports'
import MdiGridIcon from '~icons/mdi/grid-large'
import MdiFormIcon from '~icons/mdi/form-select'
@@ -41,3 +41,9 @@ export function applyLanguageDirection(dir: typeof rtl | typeof ltr) {
export function applyNonSelectable() {
document.body.classList.add('non-selectable')
}
export const getViewIcon = (key?: string | number) => {
if (!key) return
return viewIcons[key]
}