Skip to content

Commit

Permalink
Change default props types again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hal-9k1 committed Dec 5, 2024
1 parent 0d64fae commit 612f36c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/renderer/editor/ApiLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import './ApiLink.css';
*/
export default function ApiLink({
dest,
code,
code = false,
children,
}: {
dest: string;
code: boolean;
code?: boolean;
children: string;
}) {
const text = `(${children})[${dest}]`;
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/editor/HighlightedCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import './HighlightedCode.css';
*/
export default function HighlightedCode({
children,
indent,
indent = 0,
}: {
children: string;
indent: number;
indent?: number;
}) {
const lines = children.split('\n');
if (lines.length && !lines[0].trim()) {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/modals/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export default function ConfirmModal({
onConfirm,
isActive,
modalTitle,
noAutoClose,
noAutoClose = false,
children,
}: {
onClose: () => void;
onConfirm: () => void;
isActive: boolean;
modalTitle: string;
noAutoClose: boolean;
noAutoClose?: boolean;
children: ReactNode;
}) {
const handleConfirm = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/modals/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export default function Modal({
isActive,
modalTitle,
children,
className,
className = '',
}: {
onClose: () => void;
isActive: boolean;
modalTitle: string;
className?: string;
children: ReactNode;
className: string;
}) {
return (
<div className={`Modal${isActive ? ' Modal-active' : ''}`}>
Expand Down

0 comments on commit 612f36c

Please sign in to comment.