Skip to content

Commit

Permalink
change back button to done in new post body (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkasdorf committed Jul 13, 2023
1 parent aaa7aeb commit 36011dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/screens/Post/NewPostBodyScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function NewPostBodyScreen({ route, navigation }: IProps) {

const HeaderLeftButton = useCallback(
() => (
<Button title="Back" color={theme.colors.app.accent} onPress={goBack} />
<Button title="Done" color={theme.colors.app.accent} onPress={goBack} />
),
[body]
);

useEffect(() => {
navigation.setOptions({
headerLeft: HeaderLeftButton,
headerRight: HeaderLeftButton,
});
}, [body]);

Expand Down

0 comments on commit 36011dc

Please sign in to comment.