Footer next button fix
This commit is contained in:
@@ -59,12 +59,18 @@ function CreateFlowLayoutContent({ children }: { children: ReactNode }) {
|
|||||||
const previousStep = getPreviousStep();
|
const previousStep = getPreviousStep();
|
||||||
|
|
||||||
const handleNext = () => {
|
const handleNext = () => {
|
||||||
|
if (typeof document !== "undefined" && document.activeElement instanceof HTMLElement) {
|
||||||
|
document.activeElement.blur();
|
||||||
|
}
|
||||||
if (nextStep) {
|
if (nextStep) {
|
||||||
router.push(`/create/${nextStep}`);
|
router.push(`/create/${nextStep}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
|
if (typeof document !== "undefined" && document.activeElement instanceof HTMLElement) {
|
||||||
|
document.activeElement.blur();
|
||||||
|
}
|
||||||
if (previousStep) {
|
if (previousStep) {
|
||||||
router.push(`/create/${previousStep}`);
|
router.push(`/create/${previousStep}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import RuleCard from "../../components/cards/RuleCard";
|
|||||||
export default function ReviewPage() {
|
export default function ReviewPage() {
|
||||||
return (
|
return (
|
||||||
<div className="w-full max-w-[1280px] shrink-0 px-5 md:px-16">
|
<div className="w-full max-w-[1280px] shrink-0 px-5 md:px-16">
|
||||||
<div className="flex w-full flex-col gap-4 min-w-0 sm:grid sm:grid-cols-2 sm:gap-12">
|
<div className="flex w-full flex-col gap-4 min-w-0 sm:grid sm:grid-cols-2 sm:gap-[var(--measures-spacing-1200,48px)]">
|
||||||
<div className="min-w-0">
|
<div className="min-w-0">
|
||||||
<HeaderLockup
|
<HeaderLockup
|
||||||
title="Your community is added - congrats!"
|
title="Your community is added - congrats!"
|
||||||
|
|||||||
Reference in New Issue
Block a user