1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/interfaces/group.ts
Nuno Góis 3200fee963 fix: remove group owner concept (#1210)
* fix: remove group owner concept

* fix: adapt e2e tests accordingly

* refactor users select to match improvement

* refactor: add user -> edit users

* feat: add edit users to group card actions

* add a few more UI improvements

* fix: edit group users icon

* improve loading behaviour

* fix group users refresh on card view

* improvement: create group form validation

* fix edit group, some refactoring

* fix: e2e tests, minor bugs

* fix: infinite re-renders due to useHiddenColumns useEffect array dependency

* fix re-rendering on useHiddenColumns for some tables

* refactor: validations into functions / variables
2022-08-11 15:34:17 +01:00

23 lines
381 B
TypeScript

import { IUser } from './user';
export interface IGroup {
id: number;
name: string;
description: string;
createdAt: Date;
users: IGroupUser[];
projects: string[];
addedAt?: string;
userCount?: number;
}
export interface IGroupUser extends IUser {
joinedAt?: Date;
}
export interface IGroupUserModel {
user: {
id: number;
};
}