Make DHCP hosts reservation be full width
This commit is contained in:
@ -2,10 +2,14 @@ import { Grid, Paper, Typography } from "@mui/material";
|
||||
import React, { PropsWithChildren } from "react";
|
||||
|
||||
export function EditSection(
|
||||
p: { title?: string; actions?: React.ReactElement } & PropsWithChildren
|
||||
p: {
|
||||
title?: string;
|
||||
actions?: React.ReactElement;
|
||||
fullWidth?: boolean;
|
||||
} & PropsWithChildren
|
||||
): React.ReactElement {
|
||||
return (
|
||||
<Grid item sm={12} md={6}>
|
||||
<Grid item sm={12} md={p.fullWidth ? 12 : 6}>
|
||||
<Paper style={{ margin: "10px", padding: "10px" }}>
|
||||
{(p.title || p.actions) && (
|
||||
<span
|
||||
|
Reference in New Issue
Block a user