Skip to content

Commit

Permalink
Consistent function type
Browse files Browse the repository at this point in the history
  • Loading branch information
Delemangi committed Feb 11, 2024
1 parent 16d7b5b commit 3deb7d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/CameraButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Props = {
icon: string;
};

export default function Button({ title, onPress, icon }: Props) {
const Button = ({ title, onPress, icon }: Props) => {
const styles = useStyles();
const { theme } = useTheme();

Expand All @@ -34,4 +34,6 @@ export default function Button({ title, onPress, icon }: Props) {
<Text style={styles.text}>{title}</Text>
</TouchableOpacity>
);
}
};

export default Button;

0 comments on commit 3deb7d8

Please sign in to comment.