remove unnecessary disabled prop

This commit is contained in:
Florian Scholdei
2019-05-17 16:10:14 +02:00
parent 8fe5da1882
commit 1f25ba6040
2 changed files with 0 additions and 3 deletions

View File

@@ -74,7 +74,6 @@ class Config extends React.Component<Props> {
path={`${url}/roles/create`} path={`${url}/roles/create`}
render={() => ( render={() => (
<CreateRepositoryRole <CreateRepositoryRole
disabled={false}
history={this.props.history} history={this.props.history}
/> />
)} )}

View File

@@ -18,7 +18,6 @@ import {
import type {History} from "history"; import type {History} from "history";
type Props = { type Props = {
disabled: boolean,
repositoryRolesLink: string, repositoryRolesLink: string,
error?: Error, error?: Error,
history: History, history: History,
@@ -54,7 +53,6 @@ class CreateRepositoryRole extends React.Component<Props> {
<Title title={t("repositoryRole.title")} /> <Title title={t("repositoryRole.title")} />
<Subtitle subtitle={t("repositoryRole.createSubtitle")} /> <Subtitle subtitle={t("repositoryRole.createSubtitle")} />
<RepositoryRoleForm <RepositoryRoleForm
disabled={this.props.disabled}
submitForm={role => this.createRepositoryRole(role)} submitForm={role => this.createRepositoryRole(role)}
/> />
</> </>