From dd9879e8907faaabb9136b8807ad15725cdec160 Mon Sep 17 00:00:00 2001 From: Jaya Date: Sat, 2 Sep 2023 22:10:27 +0530 Subject: [PATCH] fixed linting issues --- .../User Data/UserContributions/AllContributions.tsx | 8 ++++---- .../UserContributions/NoteWorthyContributions.tsx | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/screens/ProfileScreen/User Data/UserContributions/AllContributions.tsx b/src/screens/ProfileScreen/User Data/UserContributions/AllContributions.tsx index 5ee4dfd7..72b5573a 100644 --- a/src/screens/ProfileScreen/User Data/UserContributions/AllContributions.tsx +++ b/src/screens/ProfileScreen/User Data/UserContributions/AllContributions.tsx @@ -56,7 +56,7 @@ const AllContributionsDropdown = () => { const calculateISODateFormat = (isoDateString) => { const date = new Date(isoDateString); - const formatDate = (date) => { + const formatDate = (dateVar) => { const months = [ 'January', 'February', @@ -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}`; }; diff --git a/src/screens/ProfileScreen/User Data/UserContributions/NoteWorthyContributions.tsx b/src/screens/ProfileScreen/User Data/UserContributions/NoteWorthyContributions.tsx index a92440e2..8aa75561 100644 --- a/src/screens/ProfileScreen/User Data/UserContributions/NoteWorthyContributions.tsx +++ b/src/screens/ProfileScreen/User Data/UserContributions/NoteWorthyContributions.tsx @@ -4,8 +4,6 @@ import { StyleSheet, Text, TouchableOpacity, - FlatList, - ScrollView, Linking, Image, } from 'react-native';