Skip to content

Commit

Permalink
fix: Fix vue type warnings (no-changelog) (#9038)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi committed Apr 3, 2024
1 parent 83e4739 commit 77b359a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/design-system/src/components/N8nIcon/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
</template>

<script lang="ts" setup>
import type { FontAwesomeIconProps } from '@fortawesome/vue-fontawesome';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import type { IconSize, IconColor } from '@/types/icon';
import N8nText from '../N8nText';
interface IconProps {
icon: string;
icon: FontAwesomeIconProps['icon'];
size?: IconSize;
spin?: boolean;
spin?: FontAwesomeIconProps['spin'];
color?: IconColor;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ interface RadioOption {
interface RadioButtonsProps {
modelValue?: string;
options?: RadioOption[];
size: 'small' | 'medium';
/** @default medium */
size?: 'small' | 'medium';
disabled?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/src/types/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface IconButtonProps {
active?: boolean;
disabled?: boolean;
float?: TextFloat;
icon?: string;
icon?: string | string[];
loading?: boolean;
outline?: boolean;
size?: ButtonSize;
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-ui/src/components/Sticky.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
v-touch:tap="deleteNode"
class="option"
data-test-id="delete-sticky"
:title="$locale.baseText('node.deleteNode')"
:title="$locale.baseText('node.delete')"
>
<font-awesome-icon icon="trash" />
</div>
Expand Down

0 comments on commit 77b359a

Please sign in to comment.