Skip to content

Commit

Permalink
Update dashboard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermajeed authored Apr 18, 2024
1 parent 90c7c5f commit 6e967db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mobile/app/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { useState } from "react";
export default function App() {
const [name, setName] = useState("");
const [ttUrl, setTtUrl] = useState("");
const loadingImg =
"https://firebasestorage.googleapis.com/v0/b/notifire-6339a.appspot.com/o/timetables%2Floading.png?alt=media&token=cdce32e0-f5d1-4eba-a106-a535a0ebb818";
onAuthStateChanged(auth, (user) => {
if (user) {
const name = user.email.split("@")[0].toUpperCase();
Expand All @@ -24,7 +26,8 @@ export default function App() {
setTtUrl(url);
})
.catch((error) => {
console.error(error);
console.log(error);
setTtUrl(loadingImg);
});
}
});
Expand Down Expand Up @@ -71,9 +74,7 @@ export default function App() {
<Image
style={styles.dashBoard.timeTableArea.Img}
source={{
uri: ttUrl
? ttUrl
: "https://firebasestorage.googleapis.com/v0/b/notifire-6339a.appspot.com/o/timetables%2Floading.png?alt=media&token=cdce32e0-f5d1-4eba-a106-a535a0ebb818",
uri: ttUrl ? ttUrl : loadingImg,
}}
/>
</View>
Expand Down

0 comments on commit 6e967db

Please sign in to comment.