italia / design-react-kit

Il toolkit React conforme alle linee guida di design per i siti internet e i servizi digitali della PA.
https://italia.github.io/design-react-kit/
BSD 3-Clause "New" or "Revised" License
152 stars 80 forks source link

fix: dropdown import type warning #1031

Closed Virtute90 closed 4 months ago

Virtute90 commented 4 months ago

PR Checklist

Short description of what this resolves:

Resolve these warnings

WARN export 'DropdownProps' (reexported as 'DropdownProps') was not found in './Dropdown/Dropdown' (possible exports: Dropdown)
WARN export 'DropdownMenuProps' (reexported as 'DropdownMenuProps') was not found in './Dropdown/DropdownMenu' (possible exports: DropdownMenu)
WARN export 'DropdownToggleProps' (reexported as 'DropdownToggleProps') was not found in './Dropdown/DropdownToggle' (possible exports: DropdownToggle)

The file was reformatted with prettier and eslint but I only added this:

export type { DropdownMenuProps } from './Dropdown/DropdownMenu';
export type { DropdownToggleProps } from './Dropdown/DropdownToggle';
export type { DropdownProps } from './Dropdown/Dropdown';
vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
design-react-kit ✅ Ready (Inspect) Visit Preview Mar 11, 2024 3:01pm
codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.45%. Comparing base (5b773be) to head (b546cd8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1031 +/- ## ======================================= Coverage 94.45% 94.45% ======================================= Files 289 289 Lines 2991 2991 Branches 762 762 ======================================= Hits 2825 2825 Misses 155 155 Partials 11 11 ``` | [Flag](https://app.codecov.io/gh/italia/design-react-kit/pull/1031/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=italia) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/italia/design-react-kit/pull/1031/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=italia) | `94.45% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=italia#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.