pulled out PageActions from OverviewPageActions because otherwise you can not check for name of OverviewPageActions because the component exported injectSheet -> jss

simplified CreateUser/GroupButton by not being used as external component
This commit is contained in:
Florian Scholdei
2019-04-24 09:46:22 +02:00
parent d56dc22efc
commit 7450c9bea2
7 changed files with 43 additions and 72 deletions

View File

@@ -14,6 +14,7 @@ import {
} from "../modules/repos";
import {
Page,
PageActions,
OverviewPageActions,
CreateButton,
Notification,
@@ -81,11 +82,13 @@ class Overview extends React.Component<Props> {
error={error}
>
{this.renderOverview()}
<OverviewPageActions
showCreateButton={showCreateButton}
link="repos/create"
label={t("overview.createButton")}
/>
<PageActions>
<OverviewPageActions
showCreateButton={showCreateButton}
link="repos/create"
label={t("overview.createButton")}
/>
</PageActions>
</Page>
);
}