Skip to content

Commit

Permalink
s LoadingIndicator size 프로퍼티 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
fecapark committed Feb 24, 2025
1 parent 9ec176e commit b0b8b97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/LoadingIndicator/LoadingIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { useTheme } from 'styled-components';
import { StyledIndicator } from './LoadingIndicator.style';
import { LoadingIndicatorProps } from './LoadingIndicator.type';

export const LoadingIndicator = ({ indicatorColor }: LoadingIndicatorProps) => {
export const LoadingIndicator = ({ indicatorColor, size = 40 }: LoadingIndicatorProps) => {
const theme = useTheme();

return (
<StyledIndicator>
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
width={size.toString()}
height={size.toString()}
viewBox="0 0 40 40"
fill="none"
>
Expand Down
1 change: 1 addition & 0 deletions src/components/LoadingIndicator/LoadingIndicator.type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export interface LoadingIndicatorProps {
indicatorColor?: string;
size?: number;
}

0 comments on commit b0b8b97

Please sign in to comment.