From 708e2a70127b42f99c6a3aa777fb1a88db9d145d Mon Sep 17 00:00:00 2001 From: hyochan Date: Wed, 23 Oct 2024 21:14:51 +0900 Subject: [PATCH] feat(LoadingIndicator): default bgColor --- main/uis/LoadingIndicator/index.tsx | 11 ++++++++--- package.json | 2 +- yarn.lock | 5 ----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/main/uis/LoadingIndicator/index.tsx b/main/uis/LoadingIndicator/index.tsx index 0d5a6273..8ca985de 100644 --- a/main/uis/LoadingIndicator/index.tsx +++ b/main/uis/LoadingIndicator/index.tsx @@ -5,8 +5,9 @@ import type { StyleProp, ViewStyle, } from 'react-native'; -import {ActivityIndicator, Image, View} from 'react-native'; +import {ActivityIndicator, Image} from 'react-native'; import {useTheme} from '@dooboo-ui/theme'; +import styled from '@emotion/native'; type Styles = { activityIndicator?: ViewStyle; @@ -22,6 +23,10 @@ type Props = { customElement?: JSX.Element | (() => JSX.Element); }; +const Container = styled.View` + background-color: ${({theme}) => theme.bg.basic}; +`; + export function LoadingIndicator({ customElement, style, @@ -45,7 +50,7 @@ export function LoadingIndicator({ }; return ( - + {customElement ? ( typeof customElement === 'function' ? ( customElement() @@ -71,6 +76,6 @@ export function LoadingIndicator({ ]} /> )} - + ); } diff --git a/package.json b/package.json index 42895ea8..1710450b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "build:packages": "lerna exec -- yarn build", "install:packages": "lerna exec -- yarn", "upgrade:packages": "lerna exec -- ncu -u && yarn install:packages", - "prepare": "husky install" + "prepare": "husky" }, "dependencies": { "@dooboo-ui/theme": "^0.12.16", diff --git a/yarn.lock b/yarn.lock index 401e7724..b9645628 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9327,11 +9327,6 @@ domutils@^3.0.1: domelementtype "^2.3.0" domhandler "^5.0.3" -dooboolab-welcome@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/dooboolab-welcome/-/dooboolab-welcome-1.3.2.tgz#4928595312f0429b4ea1b485ba8767bae6acdab7" - integrity sha512-2NbMaIIURElxEf/UAoVUFlXrO+7n/FRhLCiQlk4fkbGRh9cJ3/f8VEMPveR9m4Ug2l2Zey+UCXjd6EcBqHJ5bw== - dot-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751"