diff --git a/src/app/components/tanstakTable.tsx b/src/app/components/tanstakTable.tsx
index a49ab96..7afe0db 100644
--- a/src/app/components/tanstakTable.tsx
+++ b/src/app/components/tanstakTable.tsx
@@ -340,7 +340,7 @@ export default function TanstakFilesTable() {
{/* Фильтры */}
-
+
{t('date-filter')}:
{
@@ -377,7 +377,7 @@ export default function TanstakFilesTable() {
-
+
{t('type-filter')}:
{
diff --git a/src/app/styles/dashboard.scss b/src/app/styles/dashboard.scss
index 9157cc6..056c1c4 100644
--- a/src/app/styles/dashboard.scss
+++ b/src/app/styles/dashboard.scss
@@ -181,9 +181,6 @@
}
}
- &.last-column {
- }
-
&.last-row {
border-bottom: 1px solid var(--boder-collor);
}
diff --git a/src/app/styles/global-styles.scss b/src/app/styles/global-styles.scss
index 4bd1313..bc96ce4 100644
--- a/src/app/styles/global-styles.scss
+++ b/src/app/styles/global-styles.scss
@@ -92,4 +92,23 @@
margin: 0 auto;
padding: 0 24px;
}
+}
+
+.show-password-button {
+ cursor: pointer;
+ position: absolute;
+ top: 0px;
+ right: 7px;
+
+ svg {
+ width: 16px;
+ color: #686060;
+ transition: color 0.2s ease;
+ }
+
+ &.show {
+ svg {
+ color: black;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/app/styles/login.module.scss b/src/app/styles/login.module.scss
index e3f652f..e8c24d2 100644
--- a/src/app/styles/login.module.scss
+++ b/src/app/styles/login.module.scss
@@ -188,4 +188,8 @@
font-size: 13px;
line-height: 1.4;
}
+}
+
+.password-wrapper {
+ position: relative;
}
\ No newline at end of file
diff --git a/src/app/ui/register-form.tsx b/src/app/ui/register-form.tsx
index 06778b2..48885b8 100644
--- a/src/app/ui/register-form.tsx
+++ b/src/app/ui/register-form.tsx
@@ -1,11 +1,12 @@
'use client'
import styles from '@/app/styles/login.module.scss';
-import { useActionState } from 'react';
+import { useActionState, useState } from 'react';
import { registration } from '@/app/actions/auth';
import PhoneInput from '@/app/ui/inputs/phone-input';
import Link from 'next/link';
import { useTranslations } from 'next-intl';
+import { IconEye } from '@/app/ui/icons/icons';
export default function RegisterForm() {
const [state, formAction, isPending] = useActionState(
@@ -14,6 +15,20 @@ export default function RegisterForm() {
);
const t = useTranslations('Login-register-form');
+ const [showPassword, setShowPassword] = useState(false);
+
+ function handleMouseDown() {
+ setShowPassword(true);
+ }
+
+ function handleMouseUp() {
+ setShowPassword(false);
+ }
+
+ function handleMouseOut() {
+ setShowPassword(false);
+ }
+
return (