mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -18,22 +18,18 @@
|
||||
*/
|
||||
import { t } from '@superset-ui/core';
|
||||
import { useToasts } from 'src/components/MessageToasts/withToasts';
|
||||
import FormModal from 'src/components/Modal/FormModal';
|
||||
import { FormItem } from 'src/components/Form';
|
||||
import { Input } from 'src/components/Input';
|
||||
import Select from 'src/components/Select/Select';
|
||||
import { GroupObject, Role } from 'src/pages/GroupsList';
|
||||
import { Actions } from 'src/constants';
|
||||
import AsyncSelect from 'src/components/Select/AsyncSelect';
|
||||
import { BaseGroupListModalProps, FormValues } from './types';
|
||||
import { GroupObject } from 'src/pages/GroupsList';
|
||||
import {
|
||||
FormItem,
|
||||
FormModal,
|
||||
Input,
|
||||
Select,
|
||||
AsyncSelect,
|
||||
} from '@superset-ui/core/components';
|
||||
import { FormValues, GroupModalProps } from './types';
|
||||
import { createGroup, fetchUserOptions, updateGroup } from './utils';
|
||||
|
||||
export interface GroupModalProps extends BaseGroupListModalProps {
|
||||
roles: Role[];
|
||||
isEditMode?: boolean;
|
||||
group?: GroupObject;
|
||||
}
|
||||
|
||||
function GroupListModal({
|
||||
show,
|
||||
onHide,
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { GroupObject, Role } from 'src/pages/GroupsList';
|
||||
|
||||
export interface BaseGroupListModalProps {
|
||||
show: boolean;
|
||||
onHide: () => void;
|
||||
@@ -29,3 +31,8 @@ export interface FormValues {
|
||||
roles: number[];
|
||||
users: { value: number; label: string }[];
|
||||
}
|
||||
export interface GroupModalProps extends BaseGroupListModalProps {
|
||||
roles: Role[];
|
||||
isEditMode?: boolean;
|
||||
group?: GroupObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user