Skip to content

Commit

Permalink
fix: apaga "," no arquivo Payment.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroluizresende committed Jan 8, 2024
1 parent 0dcb5a4 commit 94b90d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/FriendsAccordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useContext } from 'react';
import { useLocation } from 'react-router-dom';
import { Accordion } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { MdDelete, MdEdit } from 'react-icons/md';
import { MdDelete } from 'react-icons/md';
import useFriendFormatter from '../hooks/useFriendFormatter';
import BillContext from '../context/BillContext';
import styles from './FriendsAccordion.module.css';
Expand Down
4 changes: 2 additions & 2 deletions src/context/Provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function Provider({ children }) {
setUser(response.data);
setError(null);
} catch (e) {
localStorage.clear();
setError('Ocorreu um erro ao buscar o usuário');
setSuccess(null);
handleApiError(e, setError, navigate);
} finally {
setTimeout(() => {
setLoading(false);
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Payment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ function Payment() {
friends.length > 0 && (
<Pagination className={ styles.pagination }>
<Pagination.Prev
className={disablePrev ? styles.pageButtonDisabled : styles.pageButton }
className={ disablePrev ? styles.pageButtonDisabled : styles.pageButton }
onClick={ () => changeFriend(currIndex - 1) }
/>
<Pagination.Next
className={disableNext ? styles.pageButtonDisabled : styles.pageButton }
className={ disableNext ? styles.pageButtonDisabled : styles.pageButton }
onClick={ () => changeFriend(currIndex + 1) }
/>
</Pagination>,
</Pagination>
)
}

Expand Down

0 comments on commit 94b90d1

Please sign in to comment.