+
diff --git a/src/components/news-title.tsx b/src/components/news-title.tsx
index 12d6682..7fdf431 100644
--- a/src/components/news-title.tsx
+++ b/src/components/news-title.tsx
@@ -54,10 +54,10 @@ export function NewsTitle(props: INewsTitleProps): JSX.Element {
)}
- { notLoggedIn && () }
+ { notLoggedIn && () }
|
-
+
{title}
{url && (
diff --git a/src/data/validation/user.ts b/src/data/validation/user.ts
index df71cc9..932b19c 100644
--- a/src/data/validation/user.ts
+++ b/src/data/validation/user.ts
@@ -30,35 +30,30 @@ export function validateNewUser({ id, password }): boolean {
return true;
}
-export function loginSuccessMessage(): void {
- store.addNotification({
- title: "Login Success",
- message: "Successfully Logged in",
- type: "success",
- insert: "top",
- container: "top-right",
- animationIn: ["animate__animated", "animate__fadeIn"],
- animationOut: ["animate__animated", "animate__fadeOut"],
- dismiss: {
- duration: 5000,
- onScreen: true
- }
- });
-}
-
export function logoutSuccessMessage(): void {
store.addNotification({
- title: "Logout Success",
- message: "Successfully Logged Out",
- type: "danger",
+ message: "You have successfully logged out",
+ type: "custom",
insert: "top",
- container: "top-right",
+ container: "bottom-right",
animationIn: ["animate__animated", "animate__fadeIn"],
animationOut: ["animate__animated", "animate__fadeOut"],
dismiss: {
- duration: 5000,
+ duration: 2000,
onScreen: true
- }
+ },
+ touchSlidingExit: {
+ swipe: {
+ duration: 400,
+ timingFunction: 'ease-out',
+ delay: 0,
+ },
+ fade: {
+ duration: 400,
+ timingFunction: 'ease-out',
+ delay: 0
+ }
+ },
});
}
diff --git a/src/layouts/login-layout.tsx b/src/layouts/login-layout.tsx
index 3bc0ea2..1cd6435 100644
--- a/src/layouts/login-layout.tsx
+++ b/src/layouts/login-layout.tsx
@@ -31,7 +31,7 @@ export function LoginLayout(props: IMainLayoutProps): JSX.Element {
const options = {
// you can also just use 'bottom center'
position: positions.TOP_RIGHT,
- timeout: 5000,
+ timeout: 2000,
offset: '30px',
// you can also just use 'scale'
transition: transitions.SCALE
diff --git a/src/layouts/main-layout.tsx b/src/layouts/main-layout.tsx
index 16916a2..5eb4062 100644
--- a/src/layouts/main-layout.tsx
+++ b/src/layouts/main-layout.tsx
@@ -31,7 +31,14 @@ export function MainLayout(props: IMainLayoutProps): JSX.Element {
return (
-
+
+
+
Hacker News Clone
|