chore: remove optional props
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
b709041f9d
commit
49c3d1e03a
@@ -4,10 +4,10 @@ import type { ReactNode } from "react";
|
|||||||
interface TemplatesListItemProps {
|
interface TemplatesListItemProps {
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
icon?: ReactNode;
|
icon: ReactNode;
|
||||||
iconColor?: string;
|
iconColor: string;
|
||||||
active?: boolean;
|
active: boolean;
|
||||||
onClick?: () => void;
|
onClick: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
function TemplatesListItem({
|
function TemplatesListItem({
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import TemplatesListItem from "./TemplatesListItem";
|
|||||||
function WelcomeDialog(properties: {
|
function WelcomeDialog(properties: {
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
onSelectTemplate: (templateId: string) => void;
|
onSelectTemplate: (templateId: string) => void;
|
||||||
showHeader?: boolean;
|
showHeader: boolean;
|
||||||
showNewSection?: boolean;
|
showNewSection: boolean;
|
||||||
}) {
|
}) {
|
||||||
const [selectedTemplate, setSelectedTemplate] = useState<string>(
|
const [selectedTemplate, setSelectedTemplate] = useState<string>(
|
||||||
properties.showNewSection ? "blank" : "mortgage_calculator",
|
properties.showNewSection ? "blank" : "mortgage_calculator",
|
||||||
|
|||||||
Reference in New Issue
Block a user