Skip to content

fix: remove defaultProps and propTypes #1046

fix: remove defaultProps and propTypes

fix: remove defaultProps and propTypes #1046

Triggered via pull request September 10, 2024 18:59
Status Failure
Total duration 8m 6s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
build: src/DropdownMenu/DropdownMenu.story.tsx#L29
Type '{ children: Element[]; openAriaLabel: string; closeAriaLabel: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L40
Type '{ children: Element[]; openAriaLabel: string; closeAriaLabel: string; trigger: () => Element; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L55
Type '{ children: Element[]; defaultOpen: true; backgroundColor: string; openAriaLabel: string; closeAriaLabel: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L71
Type '{ children: Element[]; trigger: () => Element; defaultOpen: true; openAriaLabel: string; closeAriaLabel: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L81
Type '{ children: Element[]; trigger: () => Element; defaultOpen: true; openAriaLabel: string; closeAriaLabel: string; size: "medium"; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L92
Type '{ children: Element[]; trigger: () => Element; defaultOpen: true; openAriaLabel: string; closeAriaLabel: string; size: "large"; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L106
Type '{ children: ({ closeMenu }: { closeMenu: any; }) => Element; openAriaLabel: string; closeAriaLabel: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L116
Type '{ children: Element; defaultOpen: true; openAriaLabel: string; closeAriaLabel: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L124
Type '{ children: Element; defaultOpen: true; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build: src/DropdownMenu/DropdownMenu.story.tsx#L130
Type '{ children: Element[]; defaultOpen: true; openAriaLabel: string; closeAriaLabel: string; }' is not assignable to type 'IntrinsicAttributes & { className?: string; size?: ComponentSize; id?: string; disabled?: boolean; trigger?: () => FunctionComponentElement<unknown>; ... 9 more ...; openOnHover?: boolean; } & StyledProps & RefAttributes<...>'.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/