Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
annacai44 committed Jan 21, 2025
1 parent 601ac88 commit 0ac1f05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Feed/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Feed({friends}) {
const [posts, setPosts] = useState([]);
const [search, setSearch] = useState();
const [filteredPosts, setFilteredPosts] = useState([]);
const [tabValue, setTabValue] = React.useState(0);
const [tabValue, setTabValue] = useState(0);

// useEffect runs every time the component is rendered
useEffect(() => {
Expand Down
22 changes: 11 additions & 11 deletions src/components/Submission/Submission.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Stack, Button, Alert, Container, TextField, Rating, Typography, Tab, Tabs, InputLabel, MenuItem, FormControl, Select } from '@mui/material';
import React, { useState } from 'react';
import { Stack, Button, Alert, Container, TextField, Rating, Typography, InputLabel, MenuItem, FormControl, Select } from '@mui/material';
import NavigationBar from '../NavigationBar/NavigationBar';
import AppBar from '../AppBar/AppBar';
import "./Submission.css";
Expand All @@ -15,15 +15,15 @@ import { collection, addDoc } from "firebase/firestore";
function Submission({ userName }) {
const navigate = useNavigate();

const [title, setTitle] = React.useState("");
const [course, setCourse] = React.useState("");
const [quarter, setQuarter] = React.useState("");
const [year, setYear] = React.useState("");
const [body, setBody] = React.useState("");
const [rating, setRating] = React.useState(0);
const [professor, setProfessor] = React.useState("");
const [fillInFields, setFillInFields] = React.useState(false);
const [selectedButton, setSelectedButton] = React.useState(""); // Default to "Show Name"
const [title, setTitle] = useState("");
const [course, setCourse] = useState("");
const [quarter, setQuarter] = useState("");
const [year, setYear] = useState("");
const [body, setBody] = useState("");
const [rating, setRating] = useState(0);
const [professor, setProfessor] = useState("");
const [fillInFields, setFillInFields] = useState(false);
const [selectedButton, setSelectedButton] = useState("");


async function handleSubmit() {
Expand Down

0 comments on commit 0ac1f05

Please sign in to comment.