diff --git a/src/components/AddObsBottomSheet/AddObsBottomSheet.tsx b/src/components/AddObsBottomSheet/AddObsBottomSheet.tsx index 1a5383da5..f5125cd8e 100644 --- a/src/components/AddObsBottomSheet/AddObsBottomSheet.tsx +++ b/src/components/AddObsBottomSheet/AddObsBottomSheet.tsx @@ -24,7 +24,7 @@ type ObsCreateItem = { testID: string, accessibilityLabel: string, accessibilityHint: string -} +}; const majorVersionIOS = parseInt( String( Platform.Version ), 10 ); const AI_CAMERA_SUPPORTED = ( Platform.OS === "ios" && majorVersionIOS >= 11 ) diff --git a/src/components/Camera/StandardCamera/CameraNavButtons.js b/src/components/Camera/StandardCamera/CameraNavButtons.js index 718bae518..1d861245f 100644 --- a/src/components/Camera/StandardCamera/CameraNavButtons.js +++ b/src/components/Camera/StandardCamera/CameraNavButtons.js @@ -16,7 +16,7 @@ type Props = { photosTaken: boolean, rotatableAnimatedStyle: Object, takePhoto: ( ) => void, -} +}; const CameraNavButtons = ( { disabled, diff --git a/src/components/Camera/StandardCamera/CameraOptionsButtons.js b/src/components/Camera/StandardCamera/CameraOptionsButtons.js index 509d1cf73..3c74471b7 100644 --- a/src/components/Camera/StandardCamera/CameraOptionsButtons.js +++ b/src/components/Camera/StandardCamera/CameraOptionsButtons.js @@ -26,7 +26,7 @@ type Props = { takePhotoOptions: Object, zoomTextValue: string, showZoomButton: boolean -} +}; const CameraOptionsButtons = ( { takePhoto, diff --git a/src/components/Camera/StandardCamera/DiscardChangesSheet.js b/src/components/Camera/StandardCamera/DiscardChangesSheet.js index 63f03518b..4edc2a58b 100644 --- a/src/components/Camera/StandardCamera/DiscardChangesSheet.js +++ b/src/components/Camera/StandardCamera/DiscardChangesSheet.js @@ -11,7 +11,7 @@ type Props = { setShowDiscardSheet: Function, hidden?: boolean, onDiscard: Function -} +}; const DiscardChangesSheet = ( { setShowDiscardSheet, diff --git a/src/components/Camera/helpers/index.ts b/src/components/Camera/helpers/index.ts index 2b2a3ea0d..3decc2b6e 100644 --- a/src/components/Camera/helpers/index.ts +++ b/src/components/Camera/helpers/index.ts @@ -7,7 +7,7 @@ const logger = log.extend( "CameraView" ); type Event = { log: string; -} +}; const handleClassifierError = ( error: CameraRuntimeError ) => { // When we hit this error, there is an error with the classifier. diff --git a/src/components/Developer/hooks/useAppSize.ts b/src/components/Developer/hooks/useAppSize.ts index 7a484497b..34dbdbbdf 100644 --- a/src/components/Developer/hooks/useAppSize.ts +++ b/src/components/Developer/hooks/useAppSize.ts @@ -13,7 +13,7 @@ import RNFS from "react-native-fs"; export type DirectoryEntrySize = { name: string; size: number; -} +}; // https://stackoverflow.com/questions/15900485/correct-way-to-convert-size-in-bytes-to-kb-mb-gb-in-javascript export function formatSizeUnits( bytes: number ) { @@ -122,7 +122,7 @@ export function getTotalDirectorySize( directoryItems: DirectoryEntrySize[] ): n type AppSize = { [directoryName: string]: DirectoryEntrySize[] -} +}; async function fetchAppSize(): Promise { const maybeExistingDirectories = await Promise.all( diff --git a/src/components/Explore/Explore.js b/src/components/Explore/Explore.js index 3aa37db09..1f751eab7 100644 --- a/src/components/Explore/Explore.js +++ b/src/components/Explore/Explore.js @@ -66,7 +66,7 @@ type Props = { updateProject: Function, updateTaxon: Function, updateUser: Function -} +}; const Explore = ( { canFetch, diff --git a/src/components/Explore/Header/ExploreHeader.js b/src/components/Explore/Header/ExploreHeader.js index a68f6a284..7e6eb9c58 100644 --- a/src/components/Explore/Header/ExploreHeader.js +++ b/src/components/Explore/Header/ExploreHeader.js @@ -35,7 +35,7 @@ type Props = { requestLocationPermissions: Function, updateLocation: Function, updateTaxon: Function -} +}; const Header = ( { count, diff --git a/src/components/Explore/Header/ExploreHeaderCount.js b/src/components/Explore/Header/ExploreHeaderCount.js index 54b5e21b3..b872d605a 100644 --- a/src/components/Explore/Header/ExploreHeaderCount.js +++ b/src/components/Explore/Header/ExploreHeaderCount.js @@ -17,7 +17,7 @@ type Props = { exploreViewIcon: string, isFetching: boolean, onPress: Function, -} +}; const ExploreHeaderCount = ( { count, diff --git a/src/components/Explore/ObservationsView.js b/src/components/Explore/ObservationsView.js index 16770dabf..e130dfba7 100644 --- a/src/components/Explore/ObservationsView.js +++ b/src/components/Explore/ObservationsView.js @@ -31,7 +31,7 @@ type Props = { hasLocationPermissions?: boolean, renderLocationPermissionsGate: Function, requestLocationPermissions: Function -} +}; const OBS_LIST_CONTAINER_STYLE = { paddingTop: 50 }; diff --git a/src/components/Explore/SpeciesView.js b/src/components/Explore/SpeciesView.js index df5052b50..c9c5899be 100644 --- a/src/components/Explore/SpeciesView.js +++ b/src/components/Explore/SpeciesView.js @@ -24,7 +24,7 @@ type Props = { isConnected: boolean, queryParams: Object, handleUpdateCount: Function -} +}; const SpeciesView = ( { canFetch, diff --git a/src/components/FullPageWebView/FullPageWebView.tsx b/src/components/FullPageWebView/FullPageWebView.tsx index f522bdcf7..9f214926d 100644 --- a/src/components/FullPageWebView/FullPageWebView.tsx +++ b/src/components/FullPageWebView/FullPageWebView.tsx @@ -59,18 +59,18 @@ type FullPageWebViewParams = { skipSetSourceInShouldStartLoadWithRequest?: boolean; clickablePathnames?: Array; shouldLoadUrl?: ( url: string ) => boolean; -} +}; type ParamList = { FullPageWebView: FullPageWebViewParams -} +}; type WebViewSource = { uri: string; headers?: { Authorization?: string | null } -} +}; export function onShouldStartLoadWithRequest( request: ShouldStartLoadRequest, diff --git a/src/components/LoginSignUp/ForgotPasswordForm.tsx b/src/components/LoginSignUp/ForgotPasswordForm.tsx index 9d648c224..e86400fe8 100644 --- a/src/components/LoginSignUp/ForgotPasswordForm.tsx +++ b/src/components/LoginSignUp/ForgotPasswordForm.tsx @@ -18,7 +18,7 @@ import LoginSignUpInputField from "./LoginSignUpInputField"; type Props = { reset: ( email: string ) => Promise, scrollViewRef?: { current: null | ElementRef }, -} +}; const ForgotPasswordForm = ( { reset, scrollViewRef }: Props ): Node => { const [email, setEmail] = useState( "" ); diff --git a/src/components/LoginSignUp/LoginForm.tsx b/src/components/LoginSignUp/LoginForm.tsx index aa5c1038b..0c24ba2a0 100644 --- a/src/components/LoginSignUp/LoginForm.tsx +++ b/src/components/LoginSignUp/LoginForm.tsx @@ -39,7 +39,7 @@ interface LoginFormParams { type ParamList = { LoginFormParams: LoginFormParams -} +}; const LoginForm = ( { scrollViewRef diff --git a/src/components/Match/AdditionalSuggestions/SuggestionsResult.tsx b/src/components/Match/AdditionalSuggestions/SuggestionsResult.tsx index 855dbcdfd..589673044 100644 --- a/src/components/Match/AdditionalSuggestions/SuggestionsResult.tsx +++ b/src/components/Match/AdditionalSuggestions/SuggestionsResult.tsx @@ -21,7 +21,7 @@ type Props = { testID?: string, updateMaxHeight?: ( height: number ) => void, forcedHeight: number -} +}; const SuggestionsResult = ( { confidence, diff --git a/src/components/Match/IconicSuggestions/IconicSuggestion.js b/src/components/Match/IconicSuggestions/IconicSuggestion.js index 7fa9be9c7..dec4132ad 100644 --- a/src/components/Match/IconicSuggestions/IconicSuggestion.js +++ b/src/components/Match/IconicSuggestions/IconicSuggestion.js @@ -19,7 +19,7 @@ type Props = { taxon: RealmTaxon | ApiTaxon, testID?: string, selected?: boolean -} +}; const IconicSuggestion = ( { fetchRemote = true, diff --git a/src/components/Match/Match.js b/src/components/Match/Match.js index 5f26c9626..9bfda2f59 100644 --- a/src/components/Match/Match.js +++ b/src/components/Match/Match.js @@ -38,7 +38,7 @@ type Props = { scrollRef: Object, iconicTaxon: Object, setIconicTaxon: ( ) => void -} +}; const Match = ( { observation, diff --git a/src/components/Match/PhotosSection.js b/src/components/Match/PhotosSection.js index 4b92b0845..5f38f26d6 100644 --- a/src/components/Match/PhotosSection.js +++ b/src/components/Match/PhotosSection.js @@ -16,7 +16,7 @@ type Props = { taxon: Object, obsPhotos: Array, navToTaxonDetails: ( photo: Object ) => void -} +}; const PhotosSection = ( { representativePhoto, diff --git a/src/components/Match/SaveDiscardButtons.js b/src/components/Match/SaveDiscardButtons.js index ddfac5400..4d73bf7d6 100644 --- a/src/components/Match/SaveDiscardButtons.js +++ b/src/components/Match/SaveDiscardButtons.js @@ -14,7 +14,7 @@ const DROP_SHADOW = getShadow( { type Props = { handlePress: Function -} +}; const SaveDiscardButtons = ( { handlePress diff --git a/src/components/MediaViewer/MainMediaDisplay.js b/src/components/MediaViewer/MainMediaDisplay.js index 642005aed..88252ce77 100644 --- a/src/components/MediaViewer/MainMediaDisplay.js +++ b/src/components/MediaViewer/MainMediaDisplay.js @@ -43,7 +43,7 @@ type Props = { }>, selectedMediaIndex: number, setSelectedMediaIndex: Function -} +}; const MainMediaDisplay = ( { autoPlaySound, diff --git a/src/components/MediaViewer/MediaSelector.js b/src/components/MediaViewer/MediaSelector.js index f20246936..e5bed3416 100644 --- a/src/components/MediaViewer/MediaSelector.js +++ b/src/components/MediaViewer/MediaSelector.js @@ -25,7 +25,7 @@ type Props = { sounds?: Array<{ file_url: string }>, -} +}; const SMALL_ITEM_CLASS = "rounded-sm w-[42px] h-[42px] mx-[6px] my-[12px]"; const LARGE_ITEM_CLASS = "rounded-md w-[83px] h-[83px] mx-[10px] my-[20px]"; diff --git a/src/components/MediaViewer/MediaViewer.js b/src/components/MediaViewer/MediaViewer.js index 4d8c9d167..98e622206 100644 --- a/src/components/MediaViewer/MediaViewer.js +++ b/src/components/MediaViewer/MediaViewer.js @@ -41,7 +41,7 @@ type Props = { file_url: string }>, uri?: string | null -} +}; const MediaViewer = ( { autoPlaySound, diff --git a/src/components/MediaViewer/MediaViewerModal.js b/src/components/MediaViewer/MediaViewerModal.js index 62d3c0555..a6403eff2 100644 --- a/src/components/MediaViewer/MediaViewerModal.js +++ b/src/components/MediaViewer/MediaViewerModal.js @@ -26,7 +26,7 @@ type Props = { }>, showModal: boolean, uri?: string | null -} +}; const MediaViewerModal = ( { autoPlaySound, diff --git a/src/components/MyObservations/Announcements.js b/src/components/MyObservations/Announcements.js index 440f6c8a9..8a8c791de 100644 --- a/src/components/MyObservations/Announcements.js +++ b/src/components/MyObservations/Announcements.js @@ -44,7 +44,7 @@ const AutoheightWebView = ( webshellProps ): Node => { type Props = { isConnected: boolean -} +}; const Announcements = ( { isConnected diff --git a/src/components/MyObservations/LoginBanner.tsx b/src/components/MyObservations/LoginBanner.tsx index b0ab37c25..5c411fd86 100644 --- a/src/components/MyObservations/LoginBanner.tsx +++ b/src/components/MyObservations/LoginBanner.tsx @@ -19,7 +19,7 @@ const DROP_SHADOW = getShadow( { type Props = { currentUser: RealmUser | null; -} +}; const LoginBanner = ( { currentUser diff --git a/src/components/MyObservations/SimpleUploadBanner.js b/src/components/MyObservations/SimpleUploadBanner.js index b73d81ce3..e9e50b1d6 100644 --- a/src/components/MyObservations/SimpleUploadBanner.js +++ b/src/components/MyObservations/SimpleUploadBanner.js @@ -25,7 +25,7 @@ type Props = { styling: string }, stopAllUploads: Function -} +}; const SimpleUploadBanner = ( { error, diff --git a/src/components/MyObservations/SimpleUploadBannerContainer.js b/src/components/MyObservations/SimpleUploadBannerContainer.js index 0e813a28b..cf90eab92 100644 --- a/src/components/MyObservations/SimpleUploadBannerContainer.js +++ b/src/components/MyObservations/SimpleUploadBannerContainer.js @@ -27,7 +27,7 @@ type Props = { numUploadableObservations: number, handleSyncButtonPress: Function, currentUser: Object -} +}; const SimpleUploadBannerContainer = ( { handleSyncButtonPress, diff --git a/src/components/ObsDetails/ActivityTab/ActivityHeader.js b/src/components/ObsDetails/ActivityTab/ActivityHeader.js index 61ff69e9c..9b42b532a 100644 --- a/src/components/ObsDetails/ActivityTab/ActivityHeader.js +++ b/src/components/ObsDetails/ActivityTab/ActivityHeader.js @@ -29,7 +29,7 @@ type Props = { geoprivacy: string, taxonGeoprivacy: string, belongsToCurrentUser: boolean -} +}; const ActivityHeader = ( { classNameMargin, diff --git a/src/components/ObsDetails/ActivityTab/ActivityHeaderContainer.js b/src/components/ObsDetails/ActivityTab/ActivityHeaderContainer.js index 7e728130c..cf5d3c8d8 100644 --- a/src/components/ObsDetails/ActivityTab/ActivityHeaderContainer.js +++ b/src/components/ObsDetails/ActivityTab/ActivityHeaderContainer.js @@ -18,7 +18,7 @@ type Props = { geoprivacy: string, taxonGeoprivacy: string, belongsToCurrentUser: boolean -} +}; const ActivityHeaderContainer = ( { classNameMargin, diff --git a/src/components/ObsDetails/ActivityTab/ActivityHeaderKebabMenu.js b/src/components/ObsDetails/ActivityTab/ActivityHeaderKebabMenu.js index 8c8f1628d..041352797 100644 --- a/src/components/ObsDetails/ActivityTab/ActivityHeaderKebabMenu.js +++ b/src/components/ObsDetails/ActivityTab/ActivityHeaderKebabMenu.js @@ -15,7 +15,7 @@ type Props = { setShowEditCommentSheet: Function, setShowWithdrawIDSheet: Function, updateIdentification: Function, -} +}; const ActivityItemKebabMenu = ( { current, diff --git a/src/components/ObsDetails/ActivityTab/ActivityItem.js b/src/components/ObsDetails/ActivityTab/ActivityItem.js index 34ee7a83f..900d8e729 100644 --- a/src/components/ObsDetails/ActivityTab/ActivityItem.js +++ b/src/components/ObsDetails/ActivityTab/ActivityItem.js @@ -27,7 +27,7 @@ type Props = { geoprivacy: string, taxonGeoprivacy: string, belongsToCurrentUser: boolean -} +}; const ActivityItem = ( { currentUserId, diff --git a/src/components/ObsDetails/ActivityTab/ActivityTab.js b/src/components/ObsDetails/ActivityTab/ActivityTab.js index 224b63658..a1d45f5f2 100644 --- a/src/components/ObsDetails/ActivityTab/ActivityTab.js +++ b/src/components/ObsDetails/ActivityTab/ActivityTab.js @@ -17,7 +17,7 @@ type Props = { targetItemID: number, // TODO change to LayoutEvent from react-native if/when switching to TS onLayoutTargetItem: ( event: Object ) => void -} +}; const ActivityTab = ( { observation, diff --git a/src/components/ObsDetails/ActivityTab/FloatingButtons.js b/src/components/ObsDetails/ActivityTab/FloatingButtons.js index 0ee135b4d..17a33fa5f 100644 --- a/src/components/ObsDetails/ActivityTab/FloatingButtons.js +++ b/src/components/ObsDetails/ActivityTab/FloatingButtons.js @@ -19,7 +19,7 @@ type Props = { navToSuggestions: Function, showAddCommentSheet: Function, openAddCommentSheet: Function -} +}; const FloatingButtons = ( { navToSuggestions, diff --git a/src/components/ObsDetails/DataQualityAssessment.js b/src/components/ObsDetails/DataQualityAssessment.js index f441c760c..2f9077a54 100644 --- a/src/components/ObsDetails/DataQualityAssessment.js +++ b/src/components/ObsDetails/DataQualityAssessment.js @@ -54,7 +54,7 @@ type Props = { removeNeedsIDVote: Function, setMetricVote: Function, setNeedsIDVote: Function, -} +}; const DataQualityAssessment = ( { checkTest, diff --git a/src/components/ObsDetails/DetailsTab/DQAVoteButtons.js b/src/components/ObsDetails/DetailsTab/DQAVoteButtons.js index 8a552ae80..7e8161b94 100644 --- a/src/components/ObsDetails/DetailsTab/DQAVoteButtons.js +++ b/src/components/ObsDetails/DetailsTab/DQAVoteButtons.js @@ -18,7 +18,7 @@ type Props = { loadingMetric: ?string, setVote: Function, removeVote: Function -} +}; const getUserVote = ( currentUser, metric, votes ) => { if ( votes && votes.length > 0 ) { diff --git a/src/components/ObsDetails/DetailsTab/DetailsMapHeader.js b/src/components/ObsDetails/DetailsTab/DetailsMapHeader.js index c40d038f8..e40dc1d82 100644 --- a/src/components/ObsDetails/DetailsTab/DetailsMapHeader.js +++ b/src/components/ObsDetails/DetailsTab/DetailsMapHeader.js @@ -12,7 +12,7 @@ import ObscurationExplanation from "./ObscurationExplanation"; type Props = { currentUser: { id: number }, observation: Object -} +}; const DetailsMapHeader = ( { currentUser, diff --git a/src/components/ObsDetails/DetailsTab/DetailsTab.js b/src/components/ObsDetails/DetailsTab/DetailsTab.js index 124160747..eaf7cec1d 100644 --- a/src/components/ObsDetails/DetailsTab/DetailsTab.js +++ b/src/components/ObsDetails/DetailsTab/DetailsTab.js @@ -27,7 +27,7 @@ import ProjectSection from "./ProjectSection"; type Props = { currentUser: Object, observation: Object -} +}; const OBSERVATION_URL = "https://www.inaturalist.org/observations"; diff --git a/src/components/ObsDetails/FaveButton.js b/src/components/ObsDetails/FaveButton.js index 3a358a4c1..ab5f9aedc 100644 --- a/src/components/ObsDetails/FaveButton.js +++ b/src/components/ObsDetails/FaveButton.js @@ -22,7 +22,7 @@ type Props = { currentUser?: Object, afterToggleFave: Function, top?: boolean -} +}; const FaveButton = ( { observation, diff --git a/src/components/ObsDetails/ObsDetails.js b/src/components/ObsDetails/ObsDetails.js index 399faa042..86b18b2a2 100644 --- a/src/components/ObsDetails/ObsDetails.js +++ b/src/components/ObsDetails/ObsDetails.js @@ -73,7 +73,7 @@ type Props = { }, onChangeIdentBody?: Function, uuid: string -} +}; const ObsDetails = ( { activityItems, diff --git a/src/components/ObsDetails/ObsDetailsOverview.js b/src/components/ObsDetails/ObsDetailsOverview.js index fbda4675b..8bf1ad0a3 100644 --- a/src/components/ObsDetails/ObsDetailsOverview.js +++ b/src/components/ObsDetails/ObsDetailsOverview.js @@ -20,7 +20,7 @@ type Props = { belongsToCurrentUser: boolean, isConnected: boolean, observation: Object, -} +}; const ObsDetailsOverview = ( { belongsToCurrentUser, diff --git a/src/components/ObsDetails/ObsMedia.js b/src/components/ObsDetails/ObsMedia.js index 97d6912af..879fbda7a 100644 --- a/src/components/ObsDetails/ObsMedia.js +++ b/src/components/ObsDetails/ObsMedia.js @@ -23,7 +23,7 @@ type Props = { file_url: string }>, tablet: boolean -} +}; const ObsMedia = ( { loading, diff --git a/src/components/ObsDetails/ObsMediaDisplay.js b/src/components/ObsDetails/ObsMediaDisplay.js index e23c28a97..f0ec0abdc 100644 --- a/src/components/ObsDetails/ObsMediaDisplay.js +++ b/src/components/ObsDetails/ObsMediaDisplay.js @@ -19,7 +19,7 @@ type Props = { photos: Array, sounds: Array, tablet: boolean -} +}; const ObsMediaDisplay = ( { loading, diff --git a/src/components/ObsDetails/ObsMediaDisplayContainer.js b/src/components/ObsDetails/ObsMediaDisplayContainer.js index 1dc54ec48..720707589 100644 --- a/src/components/ObsDetails/ObsMediaDisplayContainer.js +++ b/src/components/ObsDetails/ObsMediaDisplayContainer.js @@ -8,7 +8,7 @@ import ObsMediaDisplay from "./ObsMediaDisplay"; type Props = { observation: Object, tablet?: boolean -} +}; // TODO replace this hack. Without this you get errors about the // photo objects being invalidated down in ObsMedia, but the diff --git a/src/components/ObsDetails/Sheets/AgreeWithIDSheet.js b/src/components/ObsDetails/Sheets/AgreeWithIDSheet.js index d97f8ca2d..1879a6a6a 100644 --- a/src/components/ObsDetails/Sheets/AgreeWithIDSheet.js +++ b/src/components/ObsDetails/Sheets/AgreeWithIDSheet.js @@ -22,7 +22,7 @@ type Props = { }, onAgree:Function, onPressClose: Function, -} +}; const showTaxon = taxon => { if ( !taxon ) { diff --git a/src/components/ObsDetails/Sheets/WithdrawIDSheet.js b/src/components/ObsDetails/Sheets/WithdrawIDSheet.js index d35d50297..f3a74c7cb 100644 --- a/src/components/ObsDetails/Sheets/WithdrawIDSheet.js +++ b/src/components/ObsDetails/Sheets/WithdrawIDSheet.js @@ -14,7 +14,7 @@ type Props = { onPressClose: Function, updateIdentification: Function, taxon: Object -} +}; const showTaxon = taxon => { if ( !taxon ) { diff --git a/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeader.js b/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeader.js index 3470f044f..4a7ba3396 100644 --- a/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeader.js +++ b/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeader.js @@ -29,7 +29,7 @@ type Props = { geoprivacy: string, taxonGeoprivacy: string, belongsToCurrentUser: boolean -} +}; const ActivityHeader = ( { classNameMargin, diff --git a/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeaderContainer.js b/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeaderContainer.js index 7e728130c..cf5d3c8d8 100644 --- a/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeaderContainer.js +++ b/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityHeaderContainer.js @@ -18,7 +18,7 @@ type Props = { geoprivacy: string, taxonGeoprivacy: string, belongsToCurrentUser: boolean -} +}; const ActivityHeaderContainer = ( { classNameMargin, diff --git a/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityItem.js b/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityItem.js index 5fca62b1d..c867a0c59 100644 --- a/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityItem.js +++ b/src/components/ObsDetailsDefaultMode/CommunitySection/ActivityItem.js @@ -29,7 +29,7 @@ type Props = { taxonGeoprivacy: string, belongsToCurrentUser: boolean, showExplainerText: boolean -} +}; const ActivityItem = ( { currentUserId, diff --git a/src/components/ObsDetailsDefaultMode/CommunitySection/CommunitySection.js b/src/components/ObsDetailsDefaultMode/CommunitySection/CommunitySection.js index d7a3d087e..cd38e37bc 100644 --- a/src/components/ObsDetailsDefaultMode/CommunitySection/CommunitySection.js +++ b/src/components/ObsDetailsDefaultMode/CommunitySection/CommunitySection.js @@ -17,7 +17,7 @@ type Props = { targetItemID: number, // TODO change to LayoutEvent from react-native if/when switching to TS onLayoutTargetItem: ( event: Object ) => void -} +}; const CommunitySection = ( { observation, diff --git a/src/components/ObsDetailsDefaultMode/CommunitySection/FloatingButtons.js b/src/components/ObsDetailsDefaultMode/CommunitySection/FloatingButtons.js index 429fb02f3..8b2ac963c 100644 --- a/src/components/ObsDetailsDefaultMode/CommunitySection/FloatingButtons.js +++ b/src/components/ObsDetailsDefaultMode/CommunitySection/FloatingButtons.js @@ -19,7 +19,7 @@ type Props = { navToSuggestions: Function, showAddCommentSheet: Function, openAddCommentSheet: Function -} +}; const FloatingButtons = ( { navToSuggestions, diff --git a/src/components/ObsDetailsDefaultMode/CommunityTaxon.js b/src/components/ObsDetailsDefaultMode/CommunityTaxon.js index 5490d869f..6c8526870 100644 --- a/src/components/ObsDetailsDefaultMode/CommunityTaxon.js +++ b/src/components/ObsDetailsDefaultMode/CommunityTaxon.js @@ -20,7 +20,7 @@ type Props = { belongsToCurrentUser: boolean, isSimpleMode: boolean, observation: Object, -} +}; const CommunityTaxon = ( { belongsToCurrentUser, diff --git a/src/components/ObsDetailsDefaultMode/DetailsSection/Attribution.js b/src/components/ObsDetailsDefaultMode/DetailsSection/Attribution.js index 521764e6c..c5a4ed159 100644 --- a/src/components/ObsDetailsDefaultMode/DetailsSection/Attribution.js +++ b/src/components/ObsDetailsDefaultMode/DetailsSection/Attribution.js @@ -7,7 +7,7 @@ import React from "react"; type Props = { observation: Object -} +}; const renderRestrictions = ( licenseCode: string ) => { switch ( licenseCode ) { diff --git a/src/components/ObsDetailsDefaultMode/DetailsSection/DetailsSection.js b/src/components/ObsDetailsDefaultMode/DetailsSection/DetailsSection.js index 655147b3b..a3ec62f64 100644 --- a/src/components/ObsDetailsDefaultMode/DetailsSection/DetailsSection.js +++ b/src/components/ObsDetailsDefaultMode/DetailsSection/DetailsSection.js @@ -17,7 +17,7 @@ import GeoprivacyStatus from "./GeoprivacyStatus"; type Props = { observation: Object -} +}; const DetailsSection = ( { observation }: Props ): Node => { const application = observation?.application?.name; diff --git a/src/components/ObsDetailsDefaultMode/HeaderKebabMenu.js b/src/components/ObsDetailsDefaultMode/HeaderKebabMenu.js index 955b7c2d2..743430eea 100644 --- a/src/components/ObsDetailsDefaultMode/HeaderKebabMenu.js +++ b/src/components/ObsDetailsDefaultMode/HeaderKebabMenu.js @@ -17,7 +17,7 @@ type Props = { uuid: string, refetchSubscriptions: Function, subscriptions: Object -} +}; const HeaderKebabMenu = ( { observationId, diff --git a/src/components/ObsDetailsDefaultMode/MapSection/DetailsMapHeader.js b/src/components/ObsDetailsDefaultMode/MapSection/DetailsMapHeader.js index eefe43911..fa0c3b87d 100644 --- a/src/components/ObsDetailsDefaultMode/MapSection/DetailsMapHeader.js +++ b/src/components/ObsDetailsDefaultMode/MapSection/DetailsMapHeader.js @@ -13,7 +13,7 @@ import React from "react"; type Props = { currentUser: { id: number }, observation: Object -} +}; const DetailsMapHeader = ( { currentUser, diff --git a/src/components/ObsDetailsDefaultMode/MoreSection/MoreSection.js b/src/components/ObsDetailsDefaultMode/MoreSection/MoreSection.js index 401a46b79..dccc57f71 100644 --- a/src/components/ObsDetailsDefaultMode/MoreSection/MoreSection.js +++ b/src/components/ObsDetailsDefaultMode/MoreSection/MoreSection.js @@ -15,7 +15,7 @@ import ViewInBrowserButton from "./ViewInBrowserButton"; type Props = { observation: Object -} +}; const MoreSection = ( { observation }: Props ): Node => { const observationUUID = observation?.uuid; diff --git a/src/components/ObsDetailsDefaultMode/MoreSection/ShareButton.tsx b/src/components/ObsDetailsDefaultMode/MoreSection/ShareButton.tsx index 9947ffdb6..608abc348 100644 --- a/src/components/ObsDetailsDefaultMode/MoreSection/ShareButton.tsx +++ b/src/components/ObsDetailsDefaultMode/MoreSection/ShareButton.tsx @@ -8,7 +8,7 @@ import { Alert, Platform, Share } from "react-native"; type Props = { id: number -} +}; const OBSERVATION_URL = "https://www.inaturalist.org/observations"; diff --git a/src/components/ObsDetailsDefaultMode/ObsDetailsDefaultMode.tsx b/src/components/ObsDetailsDefaultMode/ObsDetailsDefaultMode.tsx index 58f69df28..5bb381bcf 100644 --- a/src/components/ObsDetailsDefaultMode/ObsDetailsDefaultMode.tsx +++ b/src/components/ObsDetailsDefaultMode/ObsDetailsDefaultMode.tsx @@ -44,7 +44,7 @@ type Props = { targetActivityItemID: number, wasSynced: boolean, uuid: string -} +}; const ObsDetailsDefaultMode = ( { activityItems = [], diff --git a/src/components/ObsDetailsDefaultMode/ObsMedia.js b/src/components/ObsDetailsDefaultMode/ObsMedia.js index e59f3b0a4..74d26f2e3 100644 --- a/src/components/ObsDetailsDefaultMode/ObsMedia.js +++ b/src/components/ObsDetailsDefaultMode/ObsMedia.js @@ -21,7 +21,7 @@ type Props = { sounds?: Array<{ file_url: string }> -} +}; const ObsMedia = ( { loading, diff --git a/src/components/ObsDetailsDefaultMode/ObsMediaDisplay.js b/src/components/ObsDetailsDefaultMode/ObsMediaDisplay.js index 899bf79aa..20461750d 100644 --- a/src/components/ObsDetailsDefaultMode/ObsMediaDisplay.js +++ b/src/components/ObsDetailsDefaultMode/ObsMediaDisplay.js @@ -18,7 +18,7 @@ type Props = { loading: boolean, photos: Array, sounds: Array -} +}; const ObsMediaDisplay = ( { loading, diff --git a/src/components/ObsDetailsDefaultMode/ObsMediaDisplayContainer.js b/src/components/ObsDetailsDefaultMode/ObsMediaDisplayContainer.js index 0ee5081ca..f421806ff 100644 --- a/src/components/ObsDetailsDefaultMode/ObsMediaDisplayContainer.js +++ b/src/components/ObsDetailsDefaultMode/ObsMediaDisplayContainer.js @@ -7,7 +7,7 @@ import ObsMediaDisplay from "./ObsMediaDisplay"; type Props = { observation: Object -} +}; // TODO replace this hack. Without this you get errors about the // photo objects being invalidated down in ObsMedia, but the diff --git a/src/components/ObsDetailsDefaultMode/ObserverDetails.js b/src/components/ObsDetailsDefaultMode/ObserverDetails.js index ed9d09c34..daa612c85 100644 --- a/src/components/ObsDetailsDefaultMode/ObserverDetails.js +++ b/src/components/ObsDetailsDefaultMode/ObserverDetails.js @@ -12,7 +12,7 @@ type Props = { belongsToCurrentUser: boolean, isConnected: boolean, observation: Object, -} +}; const ObserverDetails = ( { belongsToCurrentUser, diff --git a/src/components/ObsDetailsDefaultMode/Sheets/AgreeWithIDSheet.js b/src/components/ObsDetailsDefaultMode/Sheets/AgreeWithIDSheet.js index 32540c664..670e3c596 100644 --- a/src/components/ObsDetailsDefaultMode/Sheets/AgreeWithIDSheet.js +++ b/src/components/ObsDetailsDefaultMode/Sheets/AgreeWithIDSheet.js @@ -22,7 +22,7 @@ type Props = { }, onAgree:Function, onPressClose: Function, -} +}; const showTaxon = taxon => { if ( !taxon ) { diff --git a/src/components/ObsDetailsDefaultMode/StatusSection/StatusSection.js b/src/components/ObsDetailsDefaultMode/StatusSection/StatusSection.js index bad3b6df7..54ad9480f 100644 --- a/src/components/ObsDetailsDefaultMode/StatusSection/StatusSection.js +++ b/src/components/ObsDetailsDefaultMode/StatusSection/StatusSection.js @@ -12,7 +12,7 @@ import React from "react"; type Props = { observation: Object -} +}; const StatusSection = ( { observation }: Props ): Node => { if ( !observation ) return null; diff --git a/src/components/ObsEdit/BottomButtons.tsx b/src/components/ObsEdit/BottomButtons.tsx index ac2d25aa6..8802a0245 100644 --- a/src/components/ObsEdit/BottomButtons.tsx +++ b/src/components/ObsEdit/BottomButtons.tsx @@ -28,7 +28,7 @@ type Props = { showFocusedUploadButton: boolean showHalfOpacity: boolean, wasSynced: boolean, -} +}; const BottomButtons = ( { buttonPressed, diff --git a/src/components/ObsEdit/BottomButtonsContainer.tsx b/src/components/ObsEdit/BottomButtonsContainer.tsx index aedf9378c..38daf1ebe 100644 --- a/src/components/ObsEdit/BottomButtonsContainer.tsx +++ b/src/components/ObsEdit/BottomButtonsContainer.tsx @@ -29,7 +29,7 @@ type Props = { setCurrentObservationIndex: Function, // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type transitionAnimation: Function -} +}; const BottomButtonsContainer = ( { passesEvidenceTest, diff --git a/src/components/ObsEdit/EvidenceList.js b/src/components/ObsEdit/EvidenceList.js index 9fcee1ba2..6cc507d72 100644 --- a/src/components/ObsEdit/EvidenceList.js +++ b/src/components/ObsEdit/EvidenceList.js @@ -34,7 +34,7 @@ type Props = { }, uuid: string }> -} +}; const EvidenceList = ( { handleAddEvidence, diff --git a/src/components/ObsEdit/EvidenceSection.js b/src/components/ObsEdit/EvidenceSection.js index 6ef1774ae..535c3b21c 100644 --- a/src/components/ObsEdit/EvidenceSection.js +++ b/src/components/ObsEdit/EvidenceSection.js @@ -34,7 +34,7 @@ type Props = { }>, onLocationPress: ( ) => void, updateObservationKeys: Function -} +}; const EvidenceSection = ( { currentObservation, diff --git a/src/components/ObsEdit/EvidenceSectionContainer.js b/src/components/ObsEdit/EvidenceSectionContainer.js index 6ec8324b5..590525e8d 100644 --- a/src/components/ObsEdit/EvidenceSectionContainer.js +++ b/src/components/ObsEdit/EvidenceSectionContainer.js @@ -26,7 +26,7 @@ type Props = { passesEvidenceTest: boolean, setPassesEvidenceTest: Function, updateObservationKeys: Function -} +}; const EvidenceSectionContainer = ( { currentObservation, diff --git a/src/components/ObsEdit/IdentificationSection.js b/src/components/ObsEdit/IdentificationSection.js index 809fb2935..897d5f572 100644 --- a/src/components/ObsEdit/IdentificationSection.js +++ b/src/components/ObsEdit/IdentificationSection.js @@ -24,7 +24,7 @@ type Props = { resetScreen: boolean, setResetScreen: Function, updateObservationKeys: Function -} +}; const IdentificationSection = ( { currentObservation, diff --git a/src/components/ObsEdit/MultipleObservationsArrows.js b/src/components/ObsEdit/MultipleObservationsArrows.js index 013716306..b671afe38 100644 --- a/src/components/ObsEdit/MultipleObservationsArrows.js +++ b/src/components/ObsEdit/MultipleObservationsArrows.js @@ -14,7 +14,7 @@ type Props = { setResetScreen: Function, transitionAnimation: Function, transitionAnimationRef: Object -} +}; const MultipleObservationsArrows = ( { currentObservationIndex, diff --git a/src/components/ObsEdit/ObsEditHeader.js b/src/components/ObsEdit/ObsEditHeader.js index 702e4dc44..519e0145b 100644 --- a/src/components/ObsEdit/ObsEditHeader.js +++ b/src/components/ObsEdit/ObsEditHeader.js @@ -23,7 +23,7 @@ const { useRealm } = RealmContext; type Props = { observations: Array, currentObservation: Object -} +}; const ObsEditHeader = ( { observations, diff --git a/src/components/ObsEdit/OtherDataSection.js b/src/components/ObsEdit/OtherDataSection.js index 2e306faac..724251e58 100644 --- a/src/components/ObsEdit/OtherDataSection.js +++ b/src/components/ObsEdit/OtherDataSection.js @@ -15,7 +15,7 @@ import WildStatusSheet from "./Sheets/WildStatusSheet"; type Props = { currentObservation: Object, updateObservationKeys: Function -} +}; const OtherDataSection = ( { currentObservation, diff --git a/src/components/ObsEdit/Sheets/AddEvidenceSheet.js b/src/components/ObsEdit/Sheets/AddEvidenceSheet.js index 443e1dbb6..ee45a9551 100644 --- a/src/components/ObsEdit/Sheets/AddEvidenceSheet.js +++ b/src/components/ObsEdit/Sheets/AddEvidenceSheet.js @@ -13,7 +13,7 @@ type Props = { disableAddingMoreEvidence: boolean, hidden?: boolean, onClose: Function -} +}; const AddEvidenceSheet = ( { disableAddingMoreEvidence, diff --git a/src/components/ObsEdit/Sheets/DeleteObservationSheet.js b/src/components/ObsEdit/Sheets/DeleteObservationSheet.js index 8b451d9a0..21f2a3c44 100644 --- a/src/components/ObsEdit/Sheets/DeleteObservationSheet.js +++ b/src/components/ObsEdit/Sheets/DeleteObservationSheet.js @@ -18,7 +18,7 @@ type Props = { observations: Array, onDelete?: Function, updateObservations: Function -} +}; const DeleteObservationSheet = ( { currentObservation, diff --git a/src/components/ObsEdit/Sheets/DiscardChangesSheet.js b/src/components/ObsEdit/Sheets/DiscardChangesSheet.js index 95ec035ae..1f8b8ff0c 100644 --- a/src/components/ObsEdit/Sheets/DiscardChangesSheet.js +++ b/src/components/ObsEdit/Sheets/DiscardChangesSheet.js @@ -10,7 +10,7 @@ import React from "react"; type Props = { onPressClose: Function, discardChanges: Function -} +}; const DiscardChangesSheet = ( { onPressClose, diff --git a/src/components/ObsEdit/Sheets/DiscardObservationSheet.js b/src/components/ObsEdit/Sheets/DiscardObservationSheet.js index 652e3c342..1f8ad9b68 100644 --- a/src/components/ObsEdit/Sheets/DiscardObservationSheet.js +++ b/src/components/ObsEdit/Sheets/DiscardObservationSheet.js @@ -17,7 +17,7 @@ type Props = { discardObservation: Function, observations: Array, onSave?: Function -} +}; const DiscardObservationSheet = ( { onPressClose, diff --git a/src/components/ObsEdit/Sheets/GeoprivacySheet.tsx b/src/components/ObsEdit/Sheets/GeoprivacySheet.tsx index 592019196..1142c835e 100644 --- a/src/components/ObsEdit/Sheets/GeoprivacySheet.tsx +++ b/src/components/ObsEdit/Sheets/GeoprivacySheet.tsx @@ -15,7 +15,7 @@ type Props = { onPressClose: ( ) => void, selectedValue?: Geoprivacy, updateGeoprivacyStatus: ( Geoprivacy ) => void -} +}; const GeoprivacySheet = ( { onPressClose, diff --git a/src/components/ObsEdit/Sheets/ImpreciseLocationSheet.js b/src/components/ObsEdit/Sheets/ImpreciseLocationSheet.js index 97dad244f..e64bea4dd 100644 --- a/src/components/ObsEdit/Sheets/ImpreciseLocationSheet.js +++ b/src/components/ObsEdit/Sheets/ImpreciseLocationSheet.js @@ -8,7 +8,7 @@ import useTranslation from "sharedHooks/useTranslation"; type Props = { setShowImpreciseLocationSheet: Function -} +}; const ImpreciseLocationSheet = ( { setShowImpreciseLocationSheet }: Props ): Node => { const { t } = useTranslation( ); diff --git a/src/components/ObsEdit/Sheets/MissingEvidenceSheet.js b/src/components/ObsEdit/Sheets/MissingEvidenceSheet.js index 32ec5c33d..dad554429 100644 --- a/src/components/ObsEdit/Sheets/MissingEvidenceSheet.js +++ b/src/components/ObsEdit/Sheets/MissingEvidenceSheet.js @@ -9,7 +9,7 @@ import useTranslation from "sharedHooks/useTranslation"; type Props = { setShowMissingEvidenceSheet: Function -} +}; const MissingEvidenceSheet = ( { setShowMissingEvidenceSheet }: Props ): Node => { const { t } = useTranslation( ); diff --git a/src/components/ObsEdit/Sheets/WildStatusSheet.js b/src/components/ObsEdit/Sheets/WildStatusSheet.js index 24d23c70b..49d028d68 100644 --- a/src/components/ObsEdit/Sheets/WildStatusSheet.js +++ b/src/components/ObsEdit/Sheets/WildStatusSheet.js @@ -11,7 +11,7 @@ type Props = { onPressClose: Function, selectedValue: boolean, updateCaptiveStatus: Function -} +}; const WildStatusSheet = ( { onPressClose, diff --git a/src/components/PhotoImporter/GroupPhotoImage.js b/src/components/PhotoImporter/GroupPhotoImage.js index eea7912b7..29a2cf62e 100644 --- a/src/components/PhotoImporter/GroupPhotoImage.js +++ b/src/components/PhotoImporter/GroupPhotoImage.js @@ -10,7 +10,7 @@ type Props = { selectedObservations: Array, selectObservationPhotos: Function, style?: Object -} +}; const GroupPhotoImage = ( { item, diff --git a/src/components/PhotoImporter/GroupPhotos.js b/src/components/PhotoImporter/GroupPhotos.js index 72e8ed896..a33538b86 100644 --- a/src/components/PhotoImporter/GroupPhotos.js +++ b/src/components/PhotoImporter/GroupPhotos.js @@ -31,7 +31,7 @@ type Props = { selectObservationPhotos: Function, separatePhotos: Function, totalPhotos: number -} +}; const GroupPhotos = ( { combinePhotos, diff --git a/src/components/ProjectDetails/ProjectDetails.js b/src/components/ProjectDetails/ProjectDetails.js index 11edc3b4c..3a5d08db5 100644 --- a/src/components/ProjectDetails/ProjectDetails.js +++ b/src/components/ProjectDetails/ProjectDetails.js @@ -42,7 +42,7 @@ type Props = { joinProject: Function, leaveProject: Function, loadingProjectMembership: boolean -} +}; const ProjectDetails = ( { project, joinProject, leaveProject, loadingProjectMembership diff --git a/src/components/Settings/LanguageSetting.tsx b/src/components/Settings/LanguageSetting.tsx index f762d7f79..3ce2afe6b 100644 --- a/src/components/Settings/LanguageSetting.tsx +++ b/src/components/Settings/LanguageSetting.tsx @@ -19,7 +19,7 @@ type LocalesResponse = Array<{ type Props = { onChange: ( newLocale: string ) => void; -} +}; const LanguageSetting = ( { onChange }: Props ) => { const { t, i18n } = useTranslation(); diff --git a/src/components/Settings/TaxonNamesSetting.tsx b/src/components/Settings/TaxonNamesSetting.tsx index 5a2a89061..da560ef60 100644 --- a/src/components/Settings/TaxonNamesSetting.tsx +++ b/src/components/Settings/TaxonNamesSetting.tsx @@ -26,7 +26,7 @@ type NameDisplayPref = type Props = { onChange: ( options: TaxonNamesSettings ) => void; -} +}; const TaxonNamesSetting = ( { onChange }: Props ) => { const realm = useRealm( ); diff --git a/src/components/SharedComponents/ActivityAnimation/Confetti.tsx b/src/components/SharedComponents/ActivityAnimation/Confetti.tsx index 9e593ddc3..065e0b2ac 100644 --- a/src/components/SharedComponents/ActivityAnimation/Confetti.tsx +++ b/src/components/SharedComponents/ActivityAnimation/Confetti.tsx @@ -23,14 +23,14 @@ import colors from "styles/tailwindColors"; type ConfettiProps = PropsWithChildren<{ count: number duration?: number -}> +}>; type AnimatedElementProps = PropsWithChildren<{ index: number count: number animation: SharedValue duration: number -}> +}>; const AnimatedElement = memo( ( { diff --git a/src/components/SharedComponents/LabelColonValue.tsx b/src/components/SharedComponents/LabelColonValue.tsx index a03747dee..31362fae7 100644 --- a/src/components/SharedComponents/LabelColonValue.tsx +++ b/src/components/SharedComponents/LabelColonValue.tsx @@ -12,7 +12,7 @@ type Props = { value: string | number; // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type ValueComponent?: Function; -} +}; const LabelColonValue = ( { label, diff --git a/src/components/SharedComponents/OverviewCounts.js b/src/components/SharedComponents/OverviewCounts.js index 789da0fb0..ac42dbac5 100644 --- a/src/components/SharedComponents/OverviewCounts.js +++ b/src/components/SharedComponents/OverviewCounts.js @@ -13,13 +13,13 @@ type Props = { onObservationPressed: Function, onSpeciesPressed: Function, onMembersPressed: Function -} +}; type CountProps = { count: number, icon: string, label: string -} +}; type CountPressableProps = { accessibilityLabel: string, @@ -27,7 +27,7 @@ type CountPressableProps = { icon: string, label: string, onPress?: Function -} +}; const Count = ( { count, label, icon diff --git a/src/components/SharedComponents/Sheets/BottomSheetStandardBackdrop.tsx b/src/components/SharedComponents/Sheets/BottomSheetStandardBackdrop.tsx index 0e588aa12..1dd6282b8 100644 --- a/src/components/SharedComponents/Sheets/BottomSheetStandardBackdrop.tsx +++ b/src/components/SharedComponents/Sheets/BottomSheetStandardBackdrop.tsx @@ -9,7 +9,7 @@ import React from "react"; type Props = { props: BottomSheetBackdropProps, onPress: ( ) => void -} +}; const BottomSheetStandardBackdrop = ( { props, onPress }: Props ) => ( { let currentColor = "text-darkGrayDisabled"; diff --git a/src/components/SharedComponents/UploadProgressBar.tsx b/src/components/SharedComponents/UploadProgressBar.tsx index c501a6c49..a40a5b98f 100644 --- a/src/components/SharedComponents/UploadProgressBar.tsx +++ b/src/components/SharedComponents/UploadProgressBar.tsx @@ -7,7 +7,7 @@ const PROGRESS_BAR_STYLE = { backgroundColor: "transparent" }; type Props = { progress: number -} +}; const UploadProgressBar = ( { progress }: Props ): Node => ( , completeColor: string -} +}; const UploadCompleteIcon = ( { iconClasses, diff --git a/src/components/SharedComponents/UploadStatus/UploadProgressIcon.tsx b/src/components/SharedComponents/UploadStatus/UploadProgressIcon.tsx index 1d6dfe368..6e073a433 100644 --- a/src/components/SharedComponents/UploadStatus/UploadProgressIcon.tsx +++ b/src/components/SharedComponents/UploadStatus/UploadProgressIcon.tsx @@ -10,7 +10,7 @@ type Props = { progress: number; iconClasses: Array; uniqueKey?: string; -} +}; const UploadProgressIcon = ( { color, diff --git a/src/components/Suggestions/helpers/flattenUploadParams.ts b/src/components/Suggestions/helpers/flattenUploadParams.ts index f0d44f21d..e46dd6137 100644 --- a/src/components/Suggestions/helpers/flattenUploadParams.ts +++ b/src/components/Suggestions/helpers/flattenUploadParams.ts @@ -11,7 +11,7 @@ type FlattenUploadArgs = { name: string, type: string } -} +}; const flattenUploadParams = async ( uri: string diff --git a/src/components/TaxonDetails/TaxonMedia.js b/src/components/TaxonDetails/TaxonMedia.js index 3a849ed5d..05aa15980 100644 --- a/src/components/TaxonDetails/TaxonMedia.js +++ b/src/components/TaxonDetails/TaxonMedia.js @@ -28,7 +28,7 @@ type Props = { licenseCode?: string }>, tablet: boolean -} +}; const TaxonMedia = ( { loading, diff --git a/src/providers/ExploreContext.tsx b/src/providers/ExploreContext.tsx index cf25a66da..be18edc88 100644 --- a/src/providers/ExploreContext.tsx +++ b/src/providers/ExploreContext.tsx @@ -176,7 +176,7 @@ interface DefaultLocation { radius?: number } -type ExploreProviderProps = {children: React.ReactNode} +type ExploreProviderProps = {children: React.ReactNode}; type State = { casual: boolean, created_d1: string | null | undefined, @@ -225,7 +225,7 @@ type State = { excludeUser: object | undefined | null, verifiable: boolean, wildStatus: WILD_STATUS -} +}; type Action = {type: EXPLORE_ACTION.RESET} | {type: EXPLORE_ACTION.DISCARD, snapshot: State} | {type: EXPLORE_ACTION.SET_USER, user: object | null, userId: number | null, storedState: State} @@ -284,8 +284,8 @@ type Action = {type: EXPLORE_ACTION.RESET} | {type: EXPLORE_ACTION.SET_REVIEWED, reviewedFilter: REVIEWED} | {type: EXPLORE_ACTION.SET_PHOTO_LICENSE, photoLicense: PHOTO_LICENSE} | {type: EXPLORE_ACTION.SET_MAP_BOUNDARIES, mapBoundaries: MapBoundaries} - | {type: EXPLORE_ACTION.USE_STORED_STATE, storedState: State} -type Dispatch = ( action: Action ) => void + | {type: EXPLORE_ACTION.USE_STORED_STATE, storedState: State}; +type Dispatch = ( action: Action ) => void; const ExploreContext = React.createContext< { diff --git a/src/realmModels/types.d.ts b/src/realmModels/types.d.ts index e76f5b83b..e3343651d 100644 --- a/src/realmModels/types.d.ts +++ b/src/realmModels/types.d.ts @@ -100,7 +100,7 @@ export type License = | "cc-by-sa" | "cc-by-nc-nd" | "cc-by-nc-sa" - | "cc0" + | "cc0"; export interface RealmObservationPojo { _created_at?: Date; diff --git a/src/sharedHelpers/tracking.ts b/src/sharedHelpers/tracking.ts index 3ce03ecf8..08a2d7c0a 100644 --- a/src/sharedHelpers/tracking.ts +++ b/src/sharedHelpers/tracking.ts @@ -5,7 +5,7 @@ import { log } from "sharedHelpers/logger"; const logger = log.extend( "tracking.ts" ); -type FirebaseParameters = Record +type FirebaseParameters = Record; export const logFirebaseEvent = ( eventId: string, diff --git a/src/types/react-navigation.d.ts b/src/types/react-navigation.d.ts index e70c815f9..214e0b718 100644 --- a/src/types/react-navigation.d.ts +++ b/src/types/react-navigation.d.ts @@ -2,6 +2,6 @@ import type { RootStackParamList } from "@react-navigation/native"; declare global { namespace ReactNavigation { - type RootParamList = RootStackParamList + type RootParamList = RootStackParamList; } }