Skip to content

Commit

Permalink
feat(LoadingIndicator): default bgColor
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Oct 23, 2024
1 parent 3302d9e commit 708e2a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
11 changes: 8 additions & 3 deletions main/uis/LoadingIndicator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand All @@ -45,7 +50,7 @@ export function LoadingIndicator({
};

return (
<View style={style}>
<Container style={style}>
{customElement ? (
typeof customElement === 'function' ? (
customElement()
Expand All @@ -71,6 +76,6 @@ export function LoadingIndicator({
]}
/>
)}
</View>
</Container>
);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 708e2a7

Please sign in to comment.