mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
34 lines
607 B
JavaScript
34 lines
607 B
JavaScript
|
|
// @flow
|
||
|
|
import React from "react";
|
||
|
|
import type { Permission } from "../types/Permissions";
|
||
|
|
import { translate } from "react-i18next";
|
||
|
|
|
||
|
|
type Props = {
|
||
|
|
t: string => string
|
||
|
|
};
|
||
|
|
|
||
|
|
type State = {
|
||
|
|
permission: Permission
|
||
|
|
};
|
||
|
|
|
||
|
|
class CreatePermissionForm extends React.Component<Props, State> {
|
||
|
|
constructor(props: Props) {
|
||
|
|
super(props);
|
||
|
|
|
||
|
|
this.state = {
|
||
|
|
permission: {
|
||
|
|
name: "",
|
||
|
|
type: "READ",
|
||
|
|
groupPermission: false,
|
||
|
|
_links: {}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
render() {
|
||
|
|
return "Show Permissions here!";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default translate("permissions")(CreatePermissionForm);
|