Skip to content

Commit

Permalink
remove the mark active button
Browse files Browse the repository at this point in the history
  • Loading branch information
RitikJaiswal75 committed Aug 19, 2023
1 parent 773e2e3 commit ebd30d0
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/screens/HomeScreen/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,6 @@ const HomeScreen = () => {
<Text>Loading...</Text>
) : (
<>
<TouchableOpacity
key={loggedInUserData?.status || ''}
style={
loggedInUserData?.status === Strings.IDLE
? HomeViewStyle.idleBtn
: HomeViewStyle.activeButton
}
onPress={() =>
changeStatus(
loggedInUserData?.status === Strings.ACTIVE
? Strings.IDLE
: Strings.ACTIVE,
)
}
>
<Text
style={
loggedInUserData?.status === Strings.IDLE
? HomeViewStyle.idleBtnText
: HomeViewStyle.activeBtnText
}
>
{loggedInUserData?.status === Strings.ACTIVE
? Strings.IdleBtn_Text
: Strings.ActiveBtn_Text}
</Text>
</TouchableOpacity>
<TouchableOpacity
onPress={() => changeStatus(Strings.OUT_OF_OFFICE)}
>
Expand Down

0 comments on commit ebd30d0

Please sign in to comment.