nitro-web 0.1.2 → 0.1.3

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.
@@ -6,9 +6,10 @@ type signinProps = {
6
6
  className?: string,
7
7
  elements?: { Button?: typeof Button, Header?: React.ReactNode },
8
8
  redirectTo?: string,
9
+ hideSignup?: boolean,
9
10
  }
10
11
 
11
- export function Signin({ className, elements, redirectTo }: signinProps) {
12
+ export function Signin({ className, elements, redirectTo, hideSignup }: signinProps) {
12
13
  const navigate = useNavigate()
13
14
  const location = useLocation()
14
15
  const isSignout = location.pathname == '/signout'
@@ -79,7 +80,9 @@ export function Signin({ className, elements, redirectTo }: signinProps) {
79
80
  </div>
80
81
 
81
82
  <div class="mb-14">
82
- Don&apos;t have an account? You can <Link to="/signup" class="underline2 is-active">sign up here</Link>.
83
+ {!hideSignup && (
84
+ <Fragment>Don&apos;t have an account? You can <Link to="/signup" class="underline2 is-active">sign up here</Link>.</Fragment>
85
+ )}
83
86
  <FormError state={state} className="pt-2" />
84
87
  </div>
85
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-web",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",