Skip to content

Commit

Permalink
Updated text and ui
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWTE committed Jul 15, 2023
1 parent bea16f8 commit 38cb1eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/mailbox/changeMailboxQuota.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function ChangeMailboxQuota({ userInfo, userDetails, mailboxDetails, domain_id,
<div className="bg-slate-900 p-5 rounded-lg shadow-md max-w-lg mt-4">
<h2 className="text-xl font-bold mb-2">Change Mailbox Quota</h2>
<p className="text-gray-300 mb-4">
You can change the mailbox quota here.
Change the quota of the mailbox. The quota is the maximum amount of disk space the mailbox can use.
Please note that the quota cannot be changed to a value lower than the current mailbox size.
</p>
<form autoComplete="off" onSubmit={handleQuotaChange}>
<div>
Expand Down
10 changes: 7 additions & 3 deletions pages/subpages/mailbox_settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ const MailboxSettingsPage = ({domain_id, mailbox_id}: MailboxSettingsPageProps)
<h1 className="text-2xl font-bold">{mailbox.fqe} Settings</h1>
<MailboxSettingsTopBar domain_id={domain_id} rateLimit={rateLimit} />
<div className="grid grid-cols-1 md:grid-cols-2 gap-5">
<ChangeMailboxPassword userInfo={userInfo} domain_id={domain_id} mailbox_id={mailbox_id} />
<ChangeMailboxQuota userInfo={userInfo} userDetails={userDetails} mailboxDetails={mailbox} domain_id={domain_id} mailbox_id={mailbox_id} />
<div className="grid grid-cols-1 gap-5 align-start">
<ChangeMailboxPassword userInfo={userInfo} domain_id={domain_id} mailbox_id={mailbox_id} />
</div>
<div className="flex flex-col">
<ChangeMailboxQuota userInfo={userInfo} userDetails={userDetails} mailboxDetails={mailbox} domain_id={domain_id} mailbox_id={mailbox_id} />
</div>
</div>
</>
);
};
}

export default MailboxSettingsPage;

0 comments on commit 38cb1eb

Please sign in to comment.