Fix typo in frontend
This commit is contained in:
parent
4130fdcda0
commit
9278aaf89c
|
@ -8,7 +8,7 @@ Contiene `user-manager` con su base de datos. Maneja la autenticación y autoriz
|
|||
|
||||
### browser-domain
|
||||
|
||||
SPA que tiene dos flujos dependiendo si el usuario es una aerolínea o un usuario normal.
|
||||
SPA que tiene tres flujos dependiendo si el usuario es una aerolínea, un usuario normal o un admin.
|
||||
|
||||
### flights-domain
|
||||
|
||||
|
|
|
@ -71,9 +71,7 @@ export const Card: React.FC<CardProps> = ({ flight, user, subscribed, refresh, r
|
|||
.then(() => {
|
||||
refreshFlights()
|
||||
})
|
||||
.catch((error) => {
|
||||
// console.log(error)
|
||||
});
|
||||
.catch((error) => { });
|
||||
};
|
||||
|
||||
const handleModalClose = () => {
|
||||
|
@ -97,9 +95,7 @@ export const Card: React.FC<CardProps> = ({ flight, user, subscribed, refresh, r
|
|||
.then(() => {
|
||||
refresh()
|
||||
})
|
||||
.catch((error) => {
|
||||
// console.log(error)
|
||||
});
|
||||
.catch((error) => { });
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -137,9 +133,9 @@ export const Card: React.FC<CardProps> = ({ flight, user, subscribed, refresh, r
|
|||
<Text strong>Flight ID:</Text>
|
||||
<Text>{flight.id}</Text>
|
||||
</Space>
|
||||
{((!isAirline && !isAdmin) || ((user && flight.user_id == user.id) || isAdmin)) && <br></br>}
|
||||
{(user && ((!isAirline && !isAdmin) || ((flight.user_id == user.id) || isAdmin))) && <br></br>}
|
||||
</div>
|
||||
{!isAirline && !isAdmin ?
|
||||
{user && (!isAirline && !isAdmin ?
|
||||
(
|
||||
!(subscribed) ?
|
||||
<Space size={8} direction="horizontal" style={{ justifyContent: "center" }}>
|
||||
|
@ -156,7 +152,7 @@ export const Card: React.FC<CardProps> = ({ flight, user, subscribed, refresh, r
|
|||
)
|
||||
:
|
||||
(
|
||||
(user && flight.user_id == user.id) || isAdmin ?
|
||||
(flight.user_id == user.id) || isAdmin ?
|
||||
<Space size={8} direction="horizontal" style={{ justifyContent: "center" }}>
|
||||
<Button type="primary" onClick={handleEdit}>
|
||||
Edit
|
||||
|
@ -168,6 +164,7 @@ export const Card: React.FC<CardProps> = ({ flight, user, subscribed, refresh, r
|
|||
:
|
||||
<></>
|
||||
)
|
||||
)
|
||||
}
|
||||
<Modal
|
||||
title="Attention"
|
||||
|
|
|
@ -12,8 +12,6 @@ export const LogIn = () => {
|
|||
const location = useLocation();
|
||||
const { state } = location;
|
||||
|
||||
console.log(state)
|
||||
|
||||
return (
|
||||
<div className="Box Small">
|
||||
<div className="Section">
|
||||
|
|
Loading…
Reference in New Issue