Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: add types to more cockpit-components #21234

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

tomasmatus
Copy link
Member

type cockpit-components-empty-state component
type cockpit-components-truncate

pkg/lib/cockpit-components-empty-state.tsx Show resolved Hide resolved
pkg/lib/cockpit-components-empty-state.tsx Outdated Show resolved Hide resolved
pkg/lib/cockpit-components-empty-state.tsx Show resolved Hide resolved
pkg/lib/cockpit-components-empty-state.tsx Outdated Show resolved Hide resolved
@tomasmatus tomasmatus force-pushed the lib-typescript branch 2 times, most recently from 2be261c to f381d21 Compare November 11, 2024 12:23
import { Button, ButtonProps } from "@patternfly/react-core/dist/esm/components/Button/index.js";
import {
EmptyStateActions, EmptyState, EmptyStateBody, EmptyStateFooter, EmptyStateHeader, EmptyStateIcon,
EmptyStateVariant, EmptyStateIconProps, EmptyStateHeaderProps
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very much a nit but nice, is that you can differentiate from type only imports which should not end up in the bundle.

import type { EmptyStateIconProps }

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

type cockpit-components-empty-state component
type cockpit-components-truncate
@jelly jelly merged commit b0e8216 into cockpit-project:main Nov 13, 2024
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants