ui: fix types

This commit is contained in:
undefined committed 2023-03-01 12:48:06 +08:00
1 parent 73d872b238
commit fba19fd887
3 files changed
+6 -3

No files matched your search

@@ -13,7 +13,7 @@ import ScratchpadPretest from './ScratchpadPretestContainer';
import ScratchpadRecords from './ScratchpadRecordsContainer';
import ScratchpadToolbar from './ScratchpadToolbarContainer';
function buildNestedPane([a, ...panes], mode = 'horizontal') {
function buildNestedPane([a, ...panes], mode: 'horizontal' | 'vertical' = 'horizontal') {
const elements = [
a,
...panes.filter((p) => p.props.visible),