feat(frontend): added scroll view to volume modals

pull/88/head
Samuel Rowe 3 years ago
parent 8af5150e1f
commit 9ff63b47f1

@ -13,6 +13,7 @@ import { CallbackFunction, IEditVolumeForm } from "../../../types";
import { classNames } from "../../../utils/styles";
import { toaster } from "../../../utils";
import { reportErrorsAndSubmit } from "../../../utils/forms";
import { ScrollView } from "../../ScrollView";
interface ICreateVolumeModalProps {
onHide: CallbackFunction;
@ -90,9 +91,12 @@ const CreateVolumeModal = (props: ICreateVolumeModalProps) => {
</nav>
</div>
<div className="relative px-4 py-3 flex-auto">
<ScrollView
height="500px"
className="relative px-4 py-3 flex-auto"
>
{openTab === "General" && <General />}
</div>
</ScrollView>
<div className="flex items-center justify-end px-4 py-3 border-t border-solid border-blueGray-200 rounded-b">
<button

@ -16,6 +16,7 @@ import {
import { classNames } from "../../../utils/styles";
import { toaster } from "../../../utils";
import { reportErrorsAndSubmit } from "../../../utils/forms";
import { ScrollView } from "../../ScrollView";
interface IEditVolumeModal {
node: IVolumeNodeItem;
@ -103,9 +104,12 @@ const EditVolumeModal = (props: IEditVolumeModal) => {
</nav>
</div>
<div className="relative px-4 py-3 flex-auto">
<ScrollView
height="500px"
className="relative px-4 py-3 flex-auto"
>
{openTab === "General" && <General />}
</div>
</ScrollView>
<div className="flex items-center justify-end px-4 py-3 border-t border-solid border-blueGray-200 rounded-b">
<button

Loading…
Cancel
Save