Features description
parent
04f7bdb918
commit
414d0d690c
|
@ -1,5 +1,5 @@
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { CalendarHeart, Clock, Info, ShieldCheckIcon, StarIcon } from "lucide-react";
|
import { CalendarHeart, Clock, Hexagon, Info, ShieldCheckIcon, StarIcon } from "lucide-react";
|
||||||
import type { GetServerSidePropsContext } from "next";
|
import type { GetServerSidePropsContext } from "next";
|
||||||
import { signIn } from "next-auth/react";
|
import { signIn } from "next-auth/react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
@ -50,13 +50,13 @@ const FEATURES = [
|
||||||
icon: CalendarHeart,
|
icon: CalendarHeart,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "scheduling_for_your_team",
|
title: "workflow_automation",
|
||||||
description: "schedule_for_your_team_description",
|
description: "workflow_automation_description",
|
||||||
icon: Clock,
|
icon: Hexagon,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "scheduling_for_your_team",
|
title: "scheduling_for_your_team",
|
||||||
description: "schedule_for_your_team_description",
|
description: "scheduling_for_your_team_description",
|
||||||
icon: Clock,
|
icon: Clock,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -77,28 +77,19 @@ function UsernameField({
|
||||||
}) {
|
}) {
|
||||||
const { t } = useLocale();
|
const { t } = useLocale();
|
||||||
const { register, formState } = useFormContext<FormValues>();
|
const { register, formState } = useFormContext<FormValues>();
|
||||||
const [loading, setLoading] = useState(false);
|
const debouncedUsername = useDebounce(username, 600);
|
||||||
const debouncedUsername = useDebounce(username, 700);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function checkUsername() {
|
async function checkUsername() {
|
||||||
if (!debouncedUsername) {
|
if (!debouncedUsername) {
|
||||||
setLoading(false);
|
|
||||||
setPremium(false);
|
setPremium(false);
|
||||||
setUsernameTaken(false);
|
setUsernameTaken(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setLoading(true);
|
fetchUsername(debouncedUsername).then(({ data }) => {
|
||||||
fetchUsername(debouncedUsername)
|
setPremium(data.premium);
|
||||||
.then(({ data }) => {
|
setUsernameTaken(!data.available);
|
||||||
setPremium(data.premium);
|
});
|
||||||
if (!data.available) {
|
|
||||||
setUsernameTaken(true);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
setLoading(false);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
checkUsername();
|
checkUsername();
|
||||||
}, [debouncedUsername, setPremium, setUsernameTaken]);
|
}, [debouncedUsername, setPremium, setUsernameTaken]);
|
||||||
|
@ -385,11 +376,7 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup
|
||||||
<span className="text-sm font-medium">{t(feature.title)}</span>
|
<span className="text-sm font-medium">{t(feature.title)}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-subtle text-sm">
|
<div className="text-subtle text-sm">
|
||||||
<p>
|
<p>{t(feature.description)}</p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse auctor justo nec
|
|
||||||
est ultricies, sed auctor mauris iaculis. Pellentesque consectetur metus sed nunc
|
|
||||||
bibendum,
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -2045,5 +2045,11 @@
|
||||||
"seat_options_doesnt_multiple_durations": "Seat option doesn't support multiple durations",
|
"seat_options_doesnt_multiple_durations": "Seat option doesn't support multiple durations",
|
||||||
"include_calendar_event": "Include calendar event",
|
"include_calendar_event": "Include calendar event",
|
||||||
"recently_added":"Recently added",
|
"recently_added":"Recently added",
|
||||||
|
"connect_all_calendars":"Connect all your calendars",
|
||||||
|
"connect_all_calendars_description":"Connect all your calendars so you never get double booked",
|
||||||
|
"workflow_automation":"Workflow automation",
|
||||||
|
"workflow_automation_description":"Personalise your scheduling experience with workflows",
|
||||||
|
"scheduling_for_your_team":"Workflow automation",
|
||||||
|
"scheduling_for_your_team_description":"Schedule for your team with collective and round-robin scheduling",
|
||||||
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
|
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue