diff --git a/components/Account/ProDisplay.tsx b/components/Account/ProDisplay.tsx index ab1d5730..b1eb168e 100644 --- a/components/Account/ProDisplay.tsx +++ b/components/Account/ProDisplay.tsx @@ -9,7 +9,7 @@ const ProConfig = (): JSX.Element => { const [isPro, setIsPro] = useState() const showLimit = (configLimit: number | 'Inf'): string => { - return configLimit === 'Inf' ? 'Unlimited' : configLimit.toString() + return configLimit === 'Inf' || configLimit === Infinity ? 'Unlimited' : configLimit.toString() } useEffect(() => { @@ -35,20 +35,21 @@ const ProConfig = (): JSX.Element => { }, []) return <> -

PayButton Pro

+

PayButton Pro

{text}
{isPro === false && } -
+
- + + @@ -56,16 +57,16 @@ const ProConfig = (): JSX.Element => { - - - - - + + + + +
Account Limits Standard Pro
{showLimit(config.proSettings.standardDailyEmailLimit)} / day {showLimit(config.proSettings.proDailyEmailLimit)} / day
Addresses Per Button{showLimit(config.proSettings.standardAddressesPerButtonLimit)}{showLimit(config.proSettings.proAddressesPerButtonLimit)}
Outgoing Server-to-Server Messages On Payment {showLimit(config.proSettings.standardDailyPostLimit)} / day {showLimit(config.proSettings.proDailyPostLimit)} / day
Addresses Per Button{showLimit(config.proSettings.standardAddressesPerButtonLimit)}{showLimit(config.proSettings.proAddressesPerButtonLimit)}
diff --git a/components/Account/account.module.css b/components/Account/account.module.css index e37aabf5..5688b5bb 100644 --- a/components/Account/account.module.css +++ b/components/Account/account.module.css @@ -47,7 +47,6 @@ body[data-theme='dark'] .changepw_ctn input { .pro_ctn { width: 100%; background-color: #fff; - max-width: 700px; padding: 20px; border-radius: 10px; display: flex; @@ -74,3 +73,8 @@ body[data-theme="dark"] .pro_ctn input { .upgrade_btn a button { width: 100% } + +.section_header { + margin: 0 0 10px 0; + font-weight: 600; +} diff --git a/components/Organization/ViewOrganization.tsx b/components/Organization/ViewOrganization.tsx index cd244f73..066521ae 100644 --- a/components/Organization/ViewOrganization.tsx +++ b/components/Organization/ViewOrganization.tsx @@ -23,7 +23,7 @@ const ViewOrganization = ({ user, orgMembers, setOrgMembers, organization }: IPr const [loading, setLoading] = useState(false) return <> -

Organization

+

Organization

{org !== null && org.creatorId === user.userProfile.id ? ( diff --git a/components/Organization/organization.module.css b/components/Organization/organization.module.css index 18fe336c..d8cbb602 100644 --- a/components/Organization/organization.module.css +++ b/components/Organization/organization.module.css @@ -1,7 +1,6 @@ .org_ctn { width: 100%; background-color: #fff; - max-width: 700px; padding: 20px; border-radius: 10px; } diff --git a/pages/account/account.module.css b/pages/account/account.module.css index 9a99a634..594b4030 100644 --- a/pages/account/account.module.css +++ b/pages/account/account.module.css @@ -4,10 +4,36 @@ --max-width: 700px; } +.account_columns { + display: flex; + flex-direction: column; + gap: 20px; +} + +@media (min-width: 1200px) { + .account_columns { + flex-direction: row; + align-items: flex-start; + } + + .account_column { + flex: 1; + min-width: 0; + } +} + +.account_column { + display: flex; + flex-direction: column; +} + +.section_header { + margin: 0 0 10px 0; +} + .account_card { width: 100%; background-color: var(--secondary-bg-color); - max-width: var(--max-width); padding: 30px; border-radius: 8px; word-wrap: break-word; @@ -234,26 +260,3 @@ background-color: #434343; .public_key_info_ctn { width: 100%; } - -.public_key_info_ctn table { - width: 100%; - border-collapse: collapse; - border-spacing: 0; - margin: 0; - border-radius: 6px; -} - -.public_key_info_ctn th, -.public_key_info_ctn td { - border: none; - width: 100%; -} - -.public_key_info_ctn th { - background-color: black; - color: white; -} - -.public_key_info_ctn tr:nth-child(even) { - background-color: var(--secondary-bg-color); -} diff --git a/pages/account/index.tsx b/pages/account/index.tsx index 915d6d49..2e6bde75 100644 --- a/pages/account/index.tsx +++ b/pages/account/index.tsx @@ -103,10 +103,13 @@ export default function Account ({ user, userPublicKey, organization, orgMembers } } - if (user !== null) { + if (user != null) { return (
+
+
+

General

Email
@@ -189,11 +192,13 @@ export default function Account ({ user, userPublicKey, organization, orgMembers
+
-
+
{config.proSettings.enabled && }
+
) } return