Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JAYATEJA04 committed Sep 2, 2023
1 parent 9855966 commit dd9879e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const AllContributionsDropdown = () => {

const calculateISODateFormat = (isoDateString) => {
const date = new Date(isoDateString);
const formatDate = (date) => {
const formatDate = (dateVar) => {
const months = [
'January',
'February',
Expand All @@ -72,9 +72,9 @@ const AllContributionsDropdown = () => {
'December',
];

const day = date.getDate();
const monthIndex = date.getMonth();
const year = date.getFullYear();
const day = dateVar.getDate();
const monthIndex = dateVar.getMonth();
const year = dateVar.getFullYear();

return `${day} ${months[monthIndex]}, ${year}`;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import {
StyleSheet,
Text,
TouchableOpacity,
FlatList,
ScrollView,
Linking,
Image,
} from 'react-native';
Expand Down

0 comments on commit dd9879e

Please sign in to comment.