Skip to content

Commit

Permalink
update: organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dotares committed Sep 6, 2023
1 parent e8f1b40 commit f339894
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/src/components/MessageComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { deleteDoc, doc } from "firebase/firestore";
import { deleteObject, ref } from "firebase/storage";
import React from "react";
import { doc, deleteDoc } from "firebase/firestore";
import { auth, db, storage } from "../firebase-config";
import { deleteObject, ref } from "firebase/storage";
import { Message } from "../types/Message";

interface MessageProps {
Expand Down
14 changes: 7 additions & 7 deletions src/src/pages/Chat.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React, { useEffect, useState, useRef } from "react";
import {
addDoc,
collection,
onSnapshot,
orderBy,
query,
where,
serverTimestamp,
orderBy,
where,
} from "firebase/firestore";
import { getDownloadURL, ref, uploadBytesResumable } from "firebase/storage";
import { auth, db, storage } from "../firebase-config";
import React, { useEffect, useRef, useState } from "react";
import FileInput from "../components/FileInput";
import FilePreview from "../components/FilePreview";
import MessageComponent from "../components/MessageComponent";
import Navbar from "../components/Navbar";
import FilePreview from "../components/FilePreview";
import FileInput from "../components/FileInput";
import TextInput from "../components/TextInput";
import { SignUserOutProps } from "../types/signUserOutProps";
import { auth, db, storage } from "../firebase-config";
import { Message } from "../types/Message";
import { SignUserOutProps } from "../types/signUserOutProps";

export interface ChatProps extends SignUserOutProps {
room: string;
Expand Down
12 changes: 6 additions & 6 deletions src/src/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useState, useRef, useEffect } from "react";
import { signOut } from "firebase/auth";
import { auth } from "../firebase-config";
import SignUp from "./SignUp";
import Chat from "./Chat";
import SignOut from "../components/SignOut";
import CustomServerInput from "../components/CustomServerInput";
import { useEffect, useRef, useState } from "react";
import Cookies from "universal-cookie";
import CustomServerInput from "../components/CustomServerInput";
import MinimalProfileInfo from "../components/MinimalProfileInfo";
import SignOut from "../components/SignOut";
import { auth } from "../firebase-config";
import Chat from "./Chat";
import SignUp from "./SignUp";

const cookies = new Cookies();

Expand Down
4 changes: 2 additions & 2 deletions src/src/pages/SignUp.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { auth, provider } from "../firebase-config";
import { signInWithPopup } from "firebase/auth";
import Cookies from "universal-cookie";
import Footer from "../components/Footer";
import Authentication from "../components/Authentication";
import Footer from "../components/Footer";
import { auth, provider } from "../firebase-config";

const cookies = new Cookies();

Expand Down

0 comments on commit f339894

Please sign in to comment.