Skip to content

Commit

Permalink
Merge pull request #58 from faginr/peiffer-cleanup-warnings
Browse files Browse the repository at this point in the history
partial clean up of warnings on build
  • Loading branch information
philip-peiffer authored Mar 9, 2023
2 parents 6bd4fd6 + 647459a commit 42b27ae
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion react-frontend/src/components/AddSkill.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function AddSkill({skillAdded, setSkillAdded, userSkills}) {
e.preventDefault()

// handles case where description is blank
if(newSkill.description == undefined || newSkill.description === "") {
if(newSkill.description === undefined || newSkill.description === "") {
return alert('Sorry, it looks like you haven\'t provided a description... Please try again')
}

Expand Down
2 changes: 1 addition & 1 deletion react-frontend/src/components/Application.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { MdDeleteForever, MdEdit, MdLabel } from 'react-icons/md';
import { MdDeleteForever, MdEdit } from 'react-icons/md';
import EditApplicationPage from '../pages/EditApplicationPage'
import SlidingWindow from './SlidingWindow';

Expand Down
2 changes: 1 addition & 1 deletion react-frontend/src/components/UserSkillBubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function UserSkillBubble({skill, className}) {
break;
default:
completed = 0
background = "red"
background = "grey"
break;
}

Expand Down
3 changes: 0 additions & 3 deletions react-frontend/src/pages/CallBackPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import { useAPI } from "../utils/Auth0Functions";
import fetchRequests from "../data_model/fetchRequests";


const datastore_url = process.env.REACT_APP_API_SERVER_URL


function CallBackPage() {
const {isAuthenticated, user} = useAuth0()
const getTokenFromAuth0 = useAPI()
Expand Down
2 changes: 0 additions & 2 deletions react-frontend/src/pages/SkillPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { useAuth0 } from '@auth0/auth0-react';
import { useAPI } from '../utils/Auth0Functions';
import fetchRequests from '../data_model/fetchRequests';

const apiURL = process.env.REACT_APP_API_SERVER_URL

function SkillPage() {
// const [groupedSkills, setGroupedSkills] = useState({})
const [skills, setSkills] = useState([])
Expand Down

0 comments on commit 42b27ae

Please sign in to comment.