👌 IMPROVE: Changements URL /profile en /users

This commit is contained in:
Divlo
2020-04-23 17:45:21 +02:00
parent 3ff7f40f7b
commit 316d2d1107
10 changed files with 31 additions and 31 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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 = () => {

View File

@ -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 = () => {

View File

@ -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) => {

View File

@ -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 = () => {