Skip to content

Commit

Permalink
fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ludvij committed Apr 1, 2022
1 parent 3f43b9d commit 04fbe29
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 27 deletions.
8 changes: 4 additions & 4 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
]
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/react-router-dom": "^5.1.8",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3"
"@testing-library/user-event": "^12.8.3",
"@types/express": "^4.17.13",
"@types/react-router-dom": "^5.1.8"
}
}
16 changes: 0 additions & 16 deletions webapp/src/api/api.ts

This file was deleted.

2 changes: 0 additions & 2 deletions webapp/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React from 'react'
import {Route, Switch} from 'react-router-dom';
import Checkout from '../pages/Checkout';
import NavBar from "./NavBar";
import Home from "./Home";
import LoadingSession from "./LoadingSessionComponent"
import CheckoutData from "./checkout/CheckoutDataComponent"
import LogoutSession from './logout/LogoutSessionComponent';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/checkout/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Form = (props: Props) => {
const {name, email, lastName, address, resetValues } = useForm<Customer>(initialState);
const [showToast, setShowToast ] = useState(false);
const [contactData, setContactData] = useState<ContactData[]>();
const [validValue, setValidValue] = useState(false);
const [, setValidValue] = useState(false);


useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions webapp/src/pages/Checkout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, {useState} from 'react'
import {useState} from 'react'
import { Container, Row } from 'react-bootstrap';
import Form from "../components/checkout/Form";
import OrderSummary from "../components/order/Order";

const Checkout = () => {
const [address, setAddress] = useState("")
const [, setAddress] = useState("")

return (
<Container>
Expand All @@ -14,7 +14,7 @@ const Checkout = () => {
</div>
<Row>
<Form setNewAddress={setAddress}/>
<OrderSummary address={address}/>
<OrderSummary/>
</Row>
</Container>
)
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/DetailsView/DetailsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DetailsView: React.FC = () => {
}
);
},
[_id]);
[apiEndPoint, _id]);

if (item) return(
<Grid container className="centered">
Expand Down

0 comments on commit 04fbe29

Please sign in to comment.