mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
 ## About the changes <!-- Describe the changes introduced. What are they and why are they being introduced? Feel free to also add screenshots or steps to view the changes if they're visual. --> <!-- Does it close an issue? Multiple? --> Closes # <!-- (For internal contributors): Does it relate to an issue on public roadmap? --> <!-- Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item: # --> ### Important files <!-- PRs can contain a lot of changes, but not all changes are equally important. Where should a reviewer start looking to get an overview of the changes? Are any files particularly important? --> ## Discussion points <!-- Anything about the PR you'd like to discuss before it gets merged? Got any questions or doubts? -->
22 lines
709 B
TypeScript
22 lines
709 B
TypeScript
import { ConfiguredAddons } from './ConfiguredAddons/ConfiguredAddons';
|
|
import { AvailableAddons } from './AvailableAddons/AvailableAddons';
|
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
|
import useAddons from 'hooks/api/getters/useAddons/useAddons';
|
|
|
|
/**
|
|
* @deprecated remove with `integrationsRework` flag
|
|
*/
|
|
export const AddonsList = () => {
|
|
const { providers, addons, loading } = useAddons();
|
|
|
|
return (
|
|
<>
|
|
<ConditionallyRender
|
|
condition={addons.length > 0}
|
|
show={<ConfiguredAddons />}
|
|
/>
|
|
<AvailableAddons loading={loading} providers={providers} />
|
|
</>
|
|
);
|
|
};
|