Skip to content

Commit

Permalink
fix: Adjust types for IFilePickerButton to align icon with NcDialogBu…
Browse files Browse the repository at this point in the history
…tton icon

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 23, 2023
1 parent 741a6ee commit aeeb547
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,

Check warning on line 35 in lib/components/types.ts

View check run for this annotation

Codecov / codecov/patch

lib/components/types.ts#L35

Added line #L35 was not covered by tests
/**
* Optional Icon for the button
* Can be a Vue component, async Vue component, or SVG
* Should be a SVG image as raw string

Check warning on line 38 in lib/components/types.ts

View check run for this annotation

Codecov / codecov/patch

lib/components/types.ts#L38

Added line #L38 was not covered by tests
*/
icon?: Component | AsyncComponent | string,
icon?: string,

Check warning on line 40 in lib/components/types.ts

View check run for this annotation

Codecov / codecov/patch

lib/components/types.ts#L40

Added line #L40 was not covered by tests

/**
* Button type
Expand Down

0 comments on commit aeeb547

Please sign in to comment.