fleet/frontend/interfaces/role.ts

17 lines
371 B
TypeScript
Raw Normal View History

2021-10-26 14:24:16 +00:00
import PropTypes from "prop-types";
import { UserRole } from "./user";
2021-10-26 14:24:16 +00:00
export default PropTypes.shape({
disabled: PropTypes.bool,
label: PropTypes.string,
value: PropTypes.any, // eslint-disable-line react/forbid-prop-types
helpText: PropTypes.string,
2021-10-26 14:24:16 +00:00
});
export interface IRole {
disabled: boolean;
label: string;
value: UserRole;
helpText?: string;
2021-10-26 14:24:16 +00:00
}