From 346e4a68268db0256d10c0e0f56c7f4f872af66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Wed, 28 Feb 2024 13:30:46 +0100 Subject: [PATCH] Minor consistency edit --- package.json | 2 +- src/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e3331da..9cf8475 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.10.0", + "version": "0.10.1", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/index.tsx b/src/index.tsx index aa5fd40..d4d4082 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -123,7 +123,7 @@ export const If = (props: IfProps) => { * @param props {children} * @returns */ -export const Then = ({ children }: { children: ReactNode }) => { +export const Then = ({ children }: { children?: ReactNode }) => { return children; }; @@ -171,7 +171,7 @@ export const ElseIf = ({ children }: IfProps) => { * @param props {children} * @returns */ -export const Else = ({ children }: { children: ReactNode }) => { +export const Else = ({ children }: { children?: ReactNode }) => { return children; };