Skip to content

Commit

Permalink
[FIX] #21 & #12 monthly error.
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbalssa committed Jul 22, 2022
1 parent 0bbf755 commit 201d486
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/models/firefly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,19 @@ export default createModel<RootModel>()({

switch (rangeInt) {
case 1:
rangeTitle = `${moment(start).utc().format('MMMM')} ${moment(start).utc().year()}.`;
rangeTitle = `${moment(end).format('MMM')} ${moment(end).year()}.`;
break;
case 3:
rangeTitle = `Q${moment(start).utc().quarter()} ${moment(start).utc().year()}.`;
rangeTitle = `Q${moment(start).quarter()} ${moment(start).year()}.`;
break;
case 6:
rangeTitle = `S${moment(start).utc().quarter() < 3 ? 1 : 2} ${moment(start).utc().year()}.`;
rangeTitle = `S${moment(start).quarter() < 3 ? 1 : 2} ${moment(start).year()}.`;
break;
case 12:
rangeTitle = `${moment(start).utc().year()} Year.`;
rangeTitle = `${moment(start).year()} Year.`;
break;
default:
rangeTitle = `${moment(start).utc().year()} Year.`;
rangeTitle = `${moment(start).year()} Year.`;
break;
}

Expand Down
1 change: 1 addition & 0 deletions src/native/components/Oauth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const Configuration = ({
colorScheme="primary"
isDisabled={!isValidHttpUrl(backendURL) || config.oauthClientId === ''}
isLoading={loading}
isLoadingText="Submitting..."
onPress={() => promptAsync()}
>
Sign In
Expand Down
10 changes: 4 additions & 6 deletions src/native/components/UI/RangeTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ const RangeTitle = ({
<Box
shadow={2}
backgroundColor="white"
pl={4}
pr={4}
pl={3}
pr={3}
zIndex={30}
safeAreaTop
>
<HStack justifyContent="space-between" alignItems="center">
<IconButton
shadow={2}
size="sm"
borderRadius={15}
variant="solid"
_icon={{
Expand All @@ -48,7 +47,7 @@ const RangeTitle = ({
},
}}
/>
<Box flex={1} pl={3} mt={1} height={41} justifyContent="center">
<Box pl={2} mt={1} height={41} width={170} justifyContent="center">
<Text style={{ fontFamily: 'Montserrat_Bold', fontSize: 21 }}>
{rangeTitle}
</Text>
Expand All @@ -62,7 +61,7 @@ const RangeTitle = ({
variant="outline"
dropdownIcon={<></>}
height={41}
width={78}
width={84}
_selectedItem={{
bg: 'primary.600',
endIcon: <CheckIcon size="5" />,
Expand All @@ -78,7 +77,6 @@ const RangeTitle = ({

<IconButton
shadow={2}
size="sm"
borderRadius={15}
variant="solid"
_icon={{
Expand Down
7 changes: 7 additions & 0 deletions src/native/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ const theme = extendTheme({
fontFamily: 'Montserrat_Bold',
},
},
IconButton: {
baseStyle: {
_icon: {
size: 'xl',
},
},
},
Input: {
baseStyle: {
borderRadius: 15,
Expand Down
1 change: 1 addition & 0 deletions src/native/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const TabBarAdvancedButton = ({ onPress }) => (
_icon={{
as: AntDesign,
name: 'edit',
size: 'xl',
}}
onPress={onPress}
onTouchStart={() => Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)}
Expand Down

0 comments on commit 201d486

Please sign in to comment.