mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
Export login button component / Fix login extension point (#1741)
Fix login extension point Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
This commit is contained in:
@@ -26,6 +26,7 @@ import React from "react";
|
||||
import {
|
||||
Branch,
|
||||
IndexResources,
|
||||
Links,
|
||||
NamespaceStrategies,
|
||||
Repository,
|
||||
RepositoryCreation,
|
||||
@@ -81,3 +82,30 @@ export type ReposSourcesEmptyActionbar = ExtensionPointDefinition<
|
||||
"repos.sources.empty.actionbar",
|
||||
ReposSourcesEmptyActionbarExtension
|
||||
>;
|
||||
|
||||
export type PrimaryNavigationLoginButtonProps = {
|
||||
links: Links;
|
||||
label: string;
|
||||
loginUrl: string;
|
||||
from: string;
|
||||
to: string;
|
||||
className: string;
|
||||
content: React.ReactNode;
|
||||
};
|
||||
|
||||
export type PrimaryNavigationLoginButtonExtension = ExtensionPointDefinition<
|
||||
"primary-navigation.login",
|
||||
PrimaryNavigationLoginButtonProps
|
||||
>;
|
||||
|
||||
export type PrimaryNavigationLogoutButtonProps = {
|
||||
links: Links;
|
||||
label: string;
|
||||
className: string;
|
||||
content: React.ReactNode;
|
||||
};
|
||||
|
||||
export type PrimaryNavigationLogoutButtonExtension = ExtensionPointDefinition<
|
||||
"primary-navigation.logout",
|
||||
PrimaryNavigationLogoutButtonProps
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user