Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';

import { TypeAnimation } from 'react-type-animation';
interface DashboardTextboxProps {
label?: React.ReactNode;
secondaryLabel?: React.ReactNode;
Expand All @@ -13,6 +13,11 @@ const DashboardTextbox: React.FC<DashboardTextboxProps> = ({
paddingBetween,
centerAlignment,
}) => {
const animatedLabelText =
typeof label === 'string' || typeof label === 'number'
? String(label)
: null;

return (
<div className="text-left">
<div
Expand All @@ -21,7 +26,19 @@ const DashboardTextbox: React.FC<DashboardTextboxProps> = ({
}`}
>
<div className="font-bold text-base sm:text-base">
{label}
{animatedLabelText ? (
<TypeAnimation
key={animatedLabelText}
sequence={[animatedLabelText]}
wrapper="p"
speed={80}
cursor={false}
repeat={0}
preRenderFirstString={false}
/>
) : (
label
)}
</div>
<div
className={`font-semibold text-lg sm:text-xl ${
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import InfoPageLayout, {
INFO_SECTION,
INFO_SECTION_CONTENT,
INFO_SECTION_HEADING,
} from "@/_components/info-page-layout/InfoPageLayout";
} from "@/_components/info-page-layout/info-page-layout";

export default function AboutUs() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import InfoPageLayout, {
INFO_SECTION,
INFO_SECTION_CONTENT,
INFO_SECTION_HEADING,
} from "@/_components/info-page-layout/InfoPageLayout";
} from "@/_components/info-page-layout/info-page-layout";

const linkClass =
"text-link_color underline hover:text-dark_blue";
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/disclaimer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import InfoPageLayout, {
INFO_BODY,
INFO_SECTION,
INFO_SECTION_CONTENT,
} from "@/_components/info-page-layout/InfoPageLayout";
} from "@/_components/info-page-layout/info-page-layout";

export default function DisclaimerPage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/privacy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import InfoPageLayout, {
INFO_SECTION,
INFO_SECTION_CONTENT,
INFO_SECTION_HEADING,
} from "@/_components/info-page-layout/InfoPageLayout";
} from "@/_components/info-page-layout/info-page-layout";

const linkClass = "text-link_color hover:text-dark_blue";
const contentClass = `${INFO_SECTION_CONTENT} ${INFO_BODY} [&>p]:mb-3 [&>ul]:list-disc [&>ul]:list-inside [&>ul]:mb-3 [&>ol]:list-decimal [&>ol]:list-inside [&>ol]:mb-3`;
Expand Down
2 changes: 1 addition & 1 deletion src/app/info/terms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import InfoPageLayout, {
INFO_SECTION,
INFO_SECTION_CONTENT,
INFO_SECTION_HEADING,
} from "@/_components/info-page-layout/InfoPageLayout";
} from "@/_components/info-page-layout/info-page-layout";

const linkClass = "text-link_color hover:text-dark_blue";

Expand Down
Loading