Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(console): purchase/remove entitelments modal view #2509

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions apps/console/app/routes/__layout/billing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const PurchaseProModal = ({
const [proEntitlementDelta, setProEntitlementDelta] = useState(1)

return (
<Modal isOpen={isOpen} fixed handleClose={() => setIsOpen(false)}>
<Modal isOpen={isOpen} handleClose={() => setIsOpen(false)}>
<Text
size="lg"
weight="semibold"
Expand Down Expand Up @@ -476,7 +476,7 @@ const RemoveEntitelmentModal = ({
const [proEntitlementNew, setProEntitlementNew] = useState(entitlementUsage)

return (
<Modal isOpen={isOpen} fixed handleClose={() => setIsOpen(false)}>
<Modal isOpen={isOpen} handleClose={() => setIsOpen(false)}>
<Text
size="lg"
weight="semibold"
Expand Down Expand Up @@ -526,10 +526,11 @@ const RemoveEntitelmentModal = ({
value={proEntitlementNew}
onChange={setProEntitlementNew}
disabled={entitlementUsage === entitlements}
as="div"
>
{({ open }) => {
return (
<div className="relative">
<div>
<Listbox.Button
className="relative w-full cursor-default border
py-1.5 px-4 text-left shadow-sm sm:text-sm rounded-lg
Expand All @@ -553,7 +554,7 @@ const RemoveEntitelmentModal = ({
>
<Listbox.Options
className="absolute no-scrollbar w-full bg-white
rounded-lg border max-h-[200px] overflow-auto"
rounded-lg border max-h-[200px] max-w-[66.1833px] overflow-auto"
>
{Array.apply(null, Array(entitlements + 1)).map(
(_, i) => {
Expand Down Expand Up @@ -1132,7 +1133,7 @@ export default () => {
</section>

<section className="mt-10">
<article className="">
<article>
<header className="flex flex-col lg:flex-row justify-between lg:items-center relative mb-6">
<Text size="lg" weight="semibold" className="text-gray-900">
Invoices & Payments
Expand Down
Loading