rename pages functions
This commit is contained in:
@@ -110,10 +110,8 @@ export async function registration(
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
console.log('enter response ok <======');
|
||||
let parsed = await response.json();
|
||||
await createSession(parsed.token, email);
|
||||
console.log('complite response ok <======');
|
||||
} else {
|
||||
throw new Error(`
|
||||
-error-1. status: ${response.status}
|
||||
|
||||
@@ -49,4 +49,4 @@ export const loginFormSchema = z
|
||||
.trim(),
|
||||
})
|
||||
|
||||
export const localDevelopmentUrl = 'http://localhost:81';
|
||||
export const localDevelopmentUrl = 'http://localhost:80';
|
||||
@@ -8,7 +8,7 @@ export const metadata: Metadata = {
|
||||
title: 'Login',
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
export default function Page() {
|
||||
return (
|
||||
<div className={`${styles['login-container-wrapper']}`}>
|
||||
<div className={`${styles['login-container']}`}>
|
||||
|
||||
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
|
||||
title: 'Dashboard',
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<main>
|
||||
|
||||
@@ -5,7 +5,7 @@ export const metadata: Metadata = {
|
||||
title: 'emptypage',
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<main>
|
||||
|
||||
@@ -8,7 +8,7 @@ export const metadata: Metadata = {
|
||||
title: 'payment',
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<main>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
test 1
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import APISettings from '@/app/ui/settings/api-settings';
|
||||
import LastActivitySettings from '@/app/ui/settings/last-activity-settings';
|
||||
import DangerZone from '@/app/ui/settings/danger-zone';
|
||||
|
||||
export default function Home() {
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
<h1 className="page-title">⚙️ Настройки аккаунта</h1>
|
||||
|
||||
@@ -3,7 +3,7 @@ import styles from '@/app/styles/login.module.scss'
|
||||
import Link from 'next/link';
|
||||
import RegisterForm from '@/app/ui/register-form';
|
||||
|
||||
export default function Home() {
|
||||
export default function Page() {
|
||||
return (
|
||||
<div className={`${styles['login-container-wrapper']}`}>
|
||||
<div className={`${styles['login-container']}`}>
|
||||
|
||||
@@ -11,7 +11,7 @@ import { logout } from '@/app/actions/auth';
|
||||
const links = [
|
||||
{
|
||||
name: 'Отчёты',
|
||||
href: '/pages/emptypage',
|
||||
href: '/pages/reports',
|
||||
img: 'M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user