👌 IMPROVE: Changements URL /profile en /users
This commit is contained in:
@ -85,7 +85,7 @@ const manageQuotes = (props) => {
|
||||
<td className="table-row text-center">{currentQuote.quote}</td>
|
||||
<td className="table-row text-center">{currentQuote.author}</td>
|
||||
<td className="table-row text-center">
|
||||
<Link href={"/profile/[name]"} as={`/profile/${currentQuote.user.name}`}>
|
||||
<Link href={"/users/[name]"} as={`/users/${currentQuote.user.name}`}>
|
||||
<a>{currentQuote.user.name}</a>
|
||||
</Link>
|
||||
</td>
|
||||
|
@ -130,7 +130,7 @@ const QuoteList = () => {
|
||||
<td className="table-row text-center">{currentQuote.quote}</td>
|
||||
<td className="table-row text-center">{currentQuote.author}</td>
|
||||
<td className="table-row text-center">
|
||||
<Link href={"/profile/[name]"} as={`/profile/${currentQuote.user.name}`}>
|
||||
<Link href={"/users/[name]"} as={`/users/${currentQuote.user.name}`}>
|
||||
<a>{currentQuote.user.name}</a>
|
||||
</Link>
|
||||
</td>
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Fragment, useState } from 'react';
|
||||
import htmlParser from 'html-react-parser';
|
||||
import Loader from '../components/Loader';
|
||||
import HeadTag from '../components/HeadTag';
|
||||
import api from '../utils/api';
|
||||
import withoutAuth from '../hoc/withoutAuth';
|
||||
import '../public/css/pages/register-login.css';
|
||||
import Loader from '../../components/Loader';
|
||||
import HeadTag from '../../components/HeadTag';
|
||||
import api from '../../utils/api';
|
||||
import withoutAuth from '../../hoc/withoutAuth';
|
||||
import '../../public/css/pages/register-login.css';
|
||||
|
||||
const forgotPassword = () => {
|
||||
|
@ -2,11 +2,11 @@ import { Fragment, useContext, useState } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import Link from 'next/link';
|
||||
import htmlParser from 'html-react-parser';
|
||||
import Loader from '../components/Loader';
|
||||
import HeadTag from '../components/HeadTag';
|
||||
import { UserContext } from '../contexts/UserContext';
|
||||
import withoutAuth from '../hoc/withoutAuth';
|
||||
import '../public/css/pages/register-login.css';
|
||||
import Loader from '../../components/Loader';
|
||||
import HeadTag from '../../components/HeadTag';
|
||||
import { UserContext } from '../../contexts/UserContext';
|
||||
import withoutAuth from '../../hoc/withoutAuth';
|
||||
import '../../public/css/pages/register-login.css';
|
||||
|
||||
const Login = () => {
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { Fragment, useState } from 'react';
|
||||
import htmlParser from 'html-react-parser';
|
||||
import Loader from '../components/Loader';
|
||||
import HeadTag from '../components/HeadTag';
|
||||
import api from '../utils/api';
|
||||
import redirect from '../utils/redirect';
|
||||
import withoutAuth from '../hoc/withoutAuth';
|
||||
import '../public/css/pages/register-login.css';
|
||||
import Loader from '../../components/Loader';
|
||||
import HeadTag from '../../components/HeadTag';
|
||||
import api from '../../utils/api';
|
||||
import redirect from '../../utils/redirect';
|
||||
import withoutAuth from '../../hoc/withoutAuth';
|
||||
import '../../public/css/pages/register-login.css';
|
||||
|
||||
const newPassword = (props) => {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Fragment, useState } from 'react';
|
||||
import htmlParser from 'html-react-parser';
|
||||
import Loader from '../components/Loader';
|
||||
import HeadTag from '../components/HeadTag';
|
||||
import api from '../utils/api';
|
||||
import withoutAuth from '../hoc/withoutAuth';
|
||||
import '../public/css/pages/register-login.css';
|
||||
import Loader from '../../components/Loader';
|
||||
import HeadTag from '../../components/HeadTag';
|
||||
import api from '../../utils/api';
|
||||
import withoutAuth from '../../hoc/withoutAuth';
|
||||
import '../../public/css/pages/register-login.css';
|
||||
|
||||
const Register = () => {
|
||||
|
Reference in New Issue
Block a user