Kaynağa Gözat

add default value

Tatsuya Ise 2 yıl önce
ebeveyn
işleme
38f303d96c
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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>
 );