mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 09:06:06 +00:00
- Changed the size of the ServerGroupsManagerModal from "lg" to "md" for improved UI consistency. - Refactored ServerGroupsTable to enhance the layout, including adjustments to column sizes and the addition of minimum sizes for better responsiveness. - Simplified the RowActions component for better readability and alignment. - Updated the loading and empty state handling in the table to provide clearer user feedback. - Removed unused local storage hook from the component, streamlining the codebase.
28 lines
570 B
JavaScript
28 lines
570 B
JavaScript
import { Modal } from '@mantine/core';
|
|
import ServerGroupsTable from './tables/ServerGroupsTable';
|
|
|
|
const ServerGroupsManagerModal = ({
|
|
isOpen,
|
|
onClose,
|
|
onGroupCreated,
|
|
openCreateOnMount = false,
|
|
}) => {
|
|
return (
|
|
<Modal
|
|
opened={isOpen}
|
|
onClose={onClose}
|
|
title="Server Groups"
|
|
size="md"
|
|
centered
|
|
>
|
|
{isOpen ? (
|
|
<ServerGroupsTable
|
|
onGroupCreated={onGroupCreated}
|
|
openCreateOnMount={openCreateOnMount}
|
|
/>
|
|
) : null}
|
|
</Modal>
|
|
);
|
|
};
|
|
|
|
export default ServerGroupsManagerModal;
|