Skip to content

Commit

Permalink
mobile: CommunityTabs: rewrite React imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswpark committed Apr 20, 2024
1 parent f8871a6 commit 812065a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mobile/Components/CommunityTabs/CommunityTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { client } from "@/appwrite";
import { createMaterialTopTabNavigator } from "@react-navigation/material-top-tabs";
import { useFocusEffect, useNavigation } from "@react-navigation/native";
import { Account, Databases, Query } from "appwrite";
import React, { useEffect, useState } from "react";
import React from "react";
import {
ActivityIndicator,
FlatList,
Expand Down Expand Up @@ -356,7 +356,7 @@ function ChallengesTab() {
{ func: backend.getReadingChallenges, arg: {} },
backend.swrFetcher,
);
const [loading, setLoading] = useState(false);
const [loading, setLoading] = React.useState(false);

useFocusEffect(() => {
statusMutate();
Expand All @@ -366,10 +366,10 @@ function ChallengesTab() {
function Challenge({ info }) {
const start = new Date(info.startDate);
const end = new Date(info.endDate);
const [completed, setCompleted] = useState(0);
const [progress, setProgress] = useState(0);
const [completed, setCompleted] = React.useState(0);
const [progress, setProgress] = React.useState(0);

useEffect(() => {
React.useEffect(() => {
let count = 0;
if (!statusIsLoading) {
for (let i = 0; i < statusData.length; i++) {
Expand Down

0 comments on commit 812065a

Please sign in to comment.