mirror of
https://github.com/SomboChea/ui
synced 2024-06-27 21:45:33 +07:00
d1ce82854a
* refactor: replaced class by func.comp * refactor: replacing jest test by react-testing-library * refactor: added test todos * feat: added more unit tests * fix: fixed tooltip import * fix: fixed test * fix: fixed typo * fix: fixed imports
20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
import React from 'react';
|
|
|
|
import RegistryInfoDialog from '../RegistryInfoDialog';
|
|
import RegistryInfoContent from '../RegistryInfoContent';
|
|
|
|
interface Props {
|
|
isOpen: boolean;
|
|
onCloseDialog: () => void;
|
|
registryUrl: string;
|
|
scope: string;
|
|
}
|
|
|
|
const HeaderInfoDialog: React.FC<Props> = ({ onCloseDialog, isOpen, registryUrl, scope }) => (
|
|
<RegistryInfoDialog onClose={onCloseDialog} open={isOpen}>
|
|
<RegistryInfoContent registryUrl={registryUrl} scope={scope} />
|
|
</RegistryInfoDialog>
|
|
);
|
|
|
|
export default HeaderInfoDialog;
|