Skip to content

Commit

Permalink
[default-layout] Fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent e6dfbbf commit 920412d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions packages/@sanity/default-layout/src/@types/parts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ declare module 'part:@sanity/components/click-outside' {
export * from '@sanity/components/src/clickOutside'
}

declare module 'part:@sanity/components/container-query' {
export * from '@sanity/components/src/containerQuery'
}

declare module 'part:@sanity/components/buttons/button-grid-style'
declare module 'part:@sanity/components/buttons/button-grid' {
export {default} from '@sanity/components/src/buttons/ButtonGrid'
}
declare module 'part:@sanity/components/buttons/default-style'
declare module 'part:@sanity/components/buttons/default' {
export {default} from '@sanity/components/src/buttons/DefaultButton'
Expand All @@ -294,6 +302,7 @@ declare module 'part:@sanity/components/buttons/state' {
export {default} from '@sanity/components/src/buttons/StateButton'
}

declare module 'part:@sanity/components/dialogs/fullscreen-style'
declare module 'part:@sanity/components/dialogs/fullscreen' {
export {default} from '@sanity/components/src/dialogs/FullscreenDialog'
}
Expand All @@ -310,6 +319,7 @@ declare module 'part:@sanity/components/avatar' {
export * from '@sanity/components/src/avatar'
}

declare module 'part:@sanity/components/menus/default-style'
declare module 'part:@sanity/components/menus/default' {
export {default} from '@sanity/components/src/menus/DefaultMenu'
}
Expand All @@ -323,10 +333,12 @@ declare module 'part:@sanity/components/typography/hotkeys' {
export {default} from '@sanity/components/src/typography/Hotkeys'
}

declare module 'part:@sanity/components/dialogs/default-style'
declare module 'part:@sanity/components/dialogs/default' {
export {default} from '@sanity/components/src/dialogs/DefaultDialog'
}

declare module 'part:@sanity/components/dialogs/content-style'
declare module 'part:@sanity/components/dialogs/content' {
export {default} from '@sanity/components/src/dialogs/DialogContent'
}
Expand All @@ -339,6 +351,14 @@ declare module 'part:@sanity/components/popover' {
export * from '@sanity/components/src/popover'
}

declare module 'part:@sanity/components/portal' {
export * from '@sanity/components/src/portal'
}

declare module 'part:@sanity/components/previews/create-document' {
export {default} from '@sanity/components/src/previews/CreateDocumentPreview'
}

declare module 'part:@sanity/components/tooltip' {
export * from '@sanity/components/src/tooltip'
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CreateDocumentList from 'part:@sanity/components/lists/create-document'
import FileIcon from 'part:@sanity/base/file-icon'

interface Props {
actions: {icon?: React.ComponentType<{}>}[]
actions: {icon?: React.ComponentType<{}>; key: string}[]
onClose: () => void
}

Expand Down

0 comments on commit 920412d

Please sign in to comment.