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 {
|
||||
title: string;
|
||||
description: string;
|
||||
icon?: ReactNode;
|
||||
iconColor?: string;
|
||||
active?: boolean;
|
||||
onClick?: () => void;
|
||||
icon: ReactNode;
|
||||
iconColor: string;
|
||||
active: boolean;
|
||||
onClick: () => void;
|
||||
}
|
||||
|
||||
function TemplatesListItem({
|
||||
|
||||
@@ -7,8 +7,8 @@ import TemplatesListItem from "./TemplatesListItem";
|
||||
function WelcomeDialog(properties: {
|
||||
onClose: () => void;
|
||||
onSelectTemplate: (templateId: string) => void;
|
||||
showHeader?: boolean;
|
||||
showNewSection?: boolean;
|
||||
showHeader: boolean;
|
||||
showNewSection: boolean;
|
||||
}) {
|
||||
const [selectedTemplate, setSelectedTemplate] = useState<string>(
|
||||
properties.showNewSection ? "blank" : "mortgage_calculator",
|
||||
|
||||
Reference in New Issue
Block a user