mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
Add new extension point for repository avatars (#1614)
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -33,6 +33,7 @@ type Props = {
|
||||
closeFunction: () => void;
|
||||
body: ReactNode;
|
||||
active: boolean;
|
||||
closeButtonLabel?: string;
|
||||
};
|
||||
|
||||
const FullSizedModal = styled(Modal)`
|
||||
@@ -42,9 +43,9 @@ const FullSizedModal = styled(Modal)`
|
||||
}
|
||||
`;
|
||||
|
||||
const FullscreenModal: FC<Props> = ({ title, closeFunction, body, active }) => {
|
||||
const FullscreenModal: FC<Props> = ({ title, closeFunction, body, active, closeButtonLabel }) => {
|
||||
const [t] = useTranslation("repos");
|
||||
const footer = <Button label={t("diff.fullscreen.close")} action={closeFunction} color="grey" />;
|
||||
const footer = <Button label={closeButtonLabel || t("diff.fullscreen.close")} action={closeFunction} color="grey" />;
|
||||
|
||||
return <FullSizedModal title={title} closeFunction={closeFunction} body={body} footer={footer} active={active} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user