Skip to content

Refactor Button Component with New Variants and Props #1406

Refactor Button Component with New Variants and Props

Refactor Button Component with New Variants and Props #1406

Triggered via pull request January 20, 2025 13:25
Status Failure
Total duration 1m 21s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
build
Type '{ children: (string | Element)[]; type: "button"; className: string; classModifier: string; onClick: () => void; disabled: boolean | undefined; }' is not assignable to type 'IntrinsicAttributes & { variant?: Variants | undefined; size?: Sizes | undefined; leftIcon?: ReactNode; rightIcon?: ReactNode; } & Omit<...> & { ...; }'.
build
Type '{ children: string; classModifier: string; onClick: ReactEventHandler<HTMLDialogElement> & MouseEventHandler<HTMLButtonElement> & ((event: MouseEvent<...> | KeyboardEvent<...>) => void); }' is not assignable to type 'IntrinsicAttributes & { variant?: Variants | undefined; size?: Sizes | undefined; leftIcon?: ReactNode; rightIcon?: ReactNode; } & Omit<...> & { ...; }'.
build
Process completed with exit code 1.
build
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/[email protected]. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636