keystone-design-bootstrap 1.0.61 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -154,7 +154,7 @@ function LockButton({ label = 'View price' }: { label?: string }) {
|
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
function LoginWall({ message, cta
|
|
157
|
+
function LoginWall({ message, cta }: { message: string; cta: string }) {
|
|
158
158
|
return (
|
|
159
159
|
<div className="flex flex-col items-center justify-center py-20 text-center">
|
|
160
160
|
<div className="mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-secondary">
|
|
@@ -515,7 +515,7 @@ function BookPanel({
|
|
|
515
515
|
isLoggedIn: boolean;
|
|
516
516
|
}) {
|
|
517
517
|
if (!isLoggedIn) {
|
|
518
|
-
return <LoginWall message="
|
|
518
|
+
return <LoginWall message="Continue to view booking options." cta="View Booking Options" />;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
if (bookingAllowsIframe) {
|
|
@@ -724,7 +724,13 @@ export async function PortalPage({
|
|
|
724
724
|
{tab === 'packages' && (
|
|
725
725
|
<PackagesPanel packages={packageList} isLoggedIn={isLoggedIn} portalHref={portalHref} />
|
|
726
726
|
)}
|
|
727
|
-
{tab === 'specials' &&
|
|
727
|
+
{tab === 'specials' && (
|
|
728
|
+
isLoggedIn ? (
|
|
729
|
+
<SpecialsPanel specials={specials} />
|
|
730
|
+
) : (
|
|
731
|
+
<LoginWall message="Continue to view specials." cta="View Specials" />
|
|
732
|
+
)
|
|
733
|
+
)}
|
|
728
734
|
{tab === 'messages' && (
|
|
729
735
|
isLoggedIn ? (
|
|
730
736
|
<MessagesPanel
|
|
@@ -734,7 +740,7 @@ export async function PortalPage({
|
|
|
734
740
|
businessName={businessName}
|
|
735
741
|
/>
|
|
736
742
|
) : (
|
|
737
|
-
<LoginWall message="
|
|
743
|
+
<LoginWall message="Continue to view your messages." cta="View Messages" />
|
|
738
744
|
)
|
|
739
745
|
)}
|
|
740
746
|
{tab === 'book' && (
|