Skip to content

Commit

Permalink
Reports screen: Disable right date button when it goes to future.
Browse files Browse the repository at this point in the history
  • Loading branch information
alperengozum committed Dec 30, 2023
1 parent ef049a2 commit ba01575
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/headers/ReportsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export default function ReportsHeader(props: { children: React.ReactNode, select
</VStack>
<IconButton variant="ghost" colorScheme={"white"}
icon={<Icon as={Ionicons} name="chevron-forward-outline" color={"white"}/>}
isDisabled={selectedDate.end!.getTime() >= new Date().getTime()}
onPress={onRightDateButtonPress}/>

</HStack>
Expand Down

0 comments on commit ba01575

Please sign in to comment.