- Reorg andf cleanup. Maintainability.
This commit is contained in:
@@ -5,7 +5,7 @@ import { TouchableOpacity } from 'react-native';
|
||||
import { Icon } from 'react-native-elements';
|
||||
|
||||
export default function EventsIcon({ action }) {
|
||||
const renderEventsIcon = () => <Icon name="ei-calendar" type="evilicons" size={28} />;
|
||||
const renderEventsIcon = () => <Icon name="calendar" type="evilicon" size={28} />;
|
||||
|
||||
if (action) {
|
||||
return <TouchableOpacity onPress={action}>{renderEventsIcon()}</TouchableOpacity>;
|
||||
|
||||
Reference in New Issue
Block a user