Skip to content

Commit

Permalink
fix:correct lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Oct 24, 2023
1 parent e4ecccf commit dccb16e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/itemsGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const ItemsGrid = ({ categories }: ItemsGridProps) => {
(item) =>
// Supprime l'item tee shirt orga dans le cas où le prix orga n'est pas pris
!(item.key === 'orga-tshirt' && !orgaPrice) && (
<div className="item" onClick={() => select(item)}>
<div key={"item.id"} className="item" onClick={() => select(item)}>
<span
className="name"
data-details={item.name
Expand Down
6 changes: 3 additions & 3 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import React, { FC, useEffect, useState } from 'react';
import FontAwesome from 'react-fontawesome';
import moment from 'moment';

Expand All @@ -9,11 +9,11 @@ import { useRouter } from 'next/navigation';

interface PropTypes {
back?: string;
onBack?: () => void;
children?: React.ReactNode;
onBack?: () => void;
}

const Navbar = ({ back = null, onBack = null, children = null }: PropTypes) => {
const Navbar: FC<PropTypes> = ({ back = null, children = null, onBack = null }) => {
const [time, setTime] = useState(moment().format('H[h]mm'));
const name = useSelector((state: State) => state.login.name);
const serverOnline = useSelector((state: State) => state.server.internetConnected);
Expand Down

0 comments on commit dccb16e

Please sign in to comment.