瀏覽代碼

add default value

Tatsuya Ise 2 年之前
父節點
當前提交
38f303d96c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/app/src/components/LoadingSpinner.tsx

+ 1 - 1
apps/app/src/components/LoadingSpinner.tsx

@@ -2,6 +2,6 @@ import React, { type ComponentPropsWithoutRef } from 'react';
 
 import styles from './LoadingSpinner.module.scss';
 
-export const LoadingSpinner = ({ className }: ComponentPropsWithoutRef<'span'>): JSX.Element => (
+export const LoadingSpinner = ({ className = '' }: ComponentPropsWithoutRef<'span'>): JSX.Element => (
   <span className={`material-symbols-outlined pb-0 ${styles.spinner} ${className}`}>progress_activity</span>
 );