Skip to content

Commit

Permalink
refactor(INJI-472): move loader component styles to LoaderStyles
Browse files Browse the repository at this point in the history
Signed-off-by: Kiruthika Jeyashankar <[email protected]>
  • Loading branch information
KiruthikaJeyashankar committed Oct 17, 2023
1 parent 91c087f commit eecbb26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions components/ui/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Loader: React.FC<LoaderProps> = props => {
fill
align={'flex-start'}
style={Theme.LoaderStyles.titleContainer}>
<View style={Theme.issuersScreenStyles.loaderHeadingText}>
<View style={Theme.LoaderStyles.heading}>
<Text
style={Theme.TextStyles.semiBoldHeader}
testID="loaderTitle">
Expand Down Expand Up @@ -81,7 +81,7 @@ export const Loader: React.FC<LoaderProps> = props => {

export interface LoaderProps {
isVisible: boolean;
title?: string;
title: string;
subTitle?: string;
label?: string;
hint?: string;
Expand Down
8 changes: 4 additions & 4 deletions components/ui/themes/DefaultTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,10 @@ export const DefaultTheme = {
marginBottom: 17,
marginTop: 22,
},
heading: {
flex: 1,
flexDirection: 'column',
},
}),
ButtonStyles: StyleSheet.create({
fill: {
Expand Down Expand Up @@ -1193,10 +1197,6 @@ export const DefaultTheme = {
marginTop: 8,
marginLeft: 2.5,
},
loaderHeadingText: {
flex: 1,
flexDirection: 'column',
},
}),
ErrorStyles: StyleSheet.create({
image: {marginTop: -60, paddingBottom: 26},
Expand Down
8 changes: 4 additions & 4 deletions components/ui/themes/PurpleTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,10 @@ export const PurpleTheme = {
marginBottom: 17,
marginTop: 22,
},
heading: {
flex: 1,
flexDirection: 'column',
},
}),
ButtonStyles: StyleSheet.create({
fill: {
Expand Down Expand Up @@ -1191,10 +1195,6 @@ export const PurpleTheme = {
marginTop: 8,
marginLeft: 2.5,
},
loaderHeadingText: {
flex: 1,
flexDirection: 'column',
},
}),
ErrorStyles: StyleSheet.create({
image: {marginTop: -60, paddingBottom: 26},
Expand Down

0 comments on commit eecbb26

Please sign in to comment.