mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:56:38 +00:00
fix(nc-gui): type issues
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user