Skip to content

Commit

Permalink
fix component naming
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-liaoo committed May 4, 2024
1 parent c9c3c8e commit 59286c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/LinkFoodPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Modal from 'react-bootstrap/Modal';
import SearchResult from './SearchResultBootstrap';
import Button from '../css/Buttons.module.css';

function LinkFood({ ingredient, hidePopup }) {
export default function LinkFoodPopup({ ingredient, hidePopup }) {
const [results, setResults] = useState([])
useEffect(() => {
(async () => {
Expand Down Expand Up @@ -53,6 +53,4 @@ function LinkFood({ ingredient, hidePopup }) {
</Modal.Footer> */}
</Modal>
);
}

export default LinkFood;
}
2 changes: 1 addition & 1 deletion src/components/LinkedFoodPopup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from "../css/QueueItem.module.css";
import { Container, Card, ListGroup } from 'react-bootstrap';
import Modal from 'react-bootstrap/Modal';

export default function LinkedFood({ foodId, hidePopup }) {
export default function LinkedFoodPopup({ foodId, hidePopup }) {
const [food, setFood] = useState([])
useEffect(() => {
(async () => {
Expand Down

0 comments on commit 59286c2

Please sign in to comment.