Skip to content

Commit

Permalink
Merge pull request #1122 from nextcloud-libraries/fix/types
Browse files Browse the repository at this point in the history
fix: Adjust types for IFilePickerButton to align icon with NcDialogButton
  • Loading branch information
susnux committed Nov 27, 2023
2 parents fe50891 + aeeb547 commit a8ca2d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

import type { Node } from '@nextcloud/files'
import type { AsyncComponent, Component } from 'vue'

/**
* Interface for defining buttons passed to the Dialog component
Expand All @@ -33,11 +32,12 @@ export interface IDialogButton {

/** Callback on button click */
callback: () => void,

/**
* Optional Icon for the button
* Can be a Vue component, async Vue component, or SVG
* Should be a SVG image as raw string
*/
icon?: Component | AsyncComponent | string,
icon?: string,

/**
* Button type
Expand Down

0 comments on commit a8ca2d1

Please sign in to comment.