mirror of
https://github.com/rjNemo/React-SaaS-sample
synced 2026-06-06 05:06:38 +00:00
34 lines
783 B
JavaScript
34 lines
783 B
JavaScript
import React from "react";
|
|
import Section from "./Section";
|
|
import SectionHeader from "./SectionHeader";
|
|
import SignUp from "./SignUp";
|
|
import { useRouter } from "./../util/router.js";
|
|
|
|
function SignUpSection(props) {
|
|
const router = useRouter();
|
|
|
|
// Go to page after signup
|
|
const onSignup = () => {
|
|
router.push("/dashboard");
|
|
};
|
|
|
|
return (
|
|
<Section color={props.color} size={props.size}>
|
|
<div className="container">
|
|
<SectionHeader
|
|
title={props.title}
|
|
subtitle={props.subtitle}
|
|
centered={true}
|
|
size={3}
|
|
/>
|
|
<SignUp
|
|
buttonText={props.buttonText}
|
|
parentColor={props.color}
|
|
onSignup={onSignup}
|
|
/>
|
|
</div>
|
|
</Section>
|
|
);
|
|
}
|
|
|
|
export default SignUpSection;
|