aboutsummaryrefslogtreecommitdiff
path: root/app/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/components')
-rw-r--r--app/src/components/Dashboard.tsx12
-rw-r--r--app/src/components/Navbar.tsx2
-rw-r--r--app/src/components/Signup.tsx4
3 files changed, 13 insertions, 5 deletions
diff --git a/app/src/components/Dashboard.tsx b/app/src/components/Dashboard.tsx
index d2bca9e..d699efb 100644
--- a/app/src/components/Dashboard.tsx
+++ b/app/src/components/Dashboard.tsx
@@ -175,7 +175,7 @@ function Dashboard() {
{logs.filter((log) => log.link === link.link).length || 0}
</td>
<td>{link.redirect_link}</td>
- <td>{link.expire_date}</td>
+ <td>{new Date(link.expire_date).toLocaleDateString()}</td>
</tr>
{/* Conditionally render logs for this link */}
@@ -199,7 +199,15 @@ function Dashboard() {
.map((log, index, filteredLogs) => (
<tr key={log.id}>
<td>{filteredLogs.length - index}</td>
- <td>{log.timestamp}</td>
+ <td>
+ {new Date(
+ log.timestamp
+ ).toLocaleTimeString() +
+ ', ' +
+ new Date(
+ log.timestamp
+ ).toLocaleDateString()}
+ </td>
<td>{log.ip}</td>
<td>{log.location}</td>
<td>{log.isp}</td>
diff --git a/app/src/components/Navbar.tsx b/app/src/components/Navbar.tsx
index ea49ea8..79efce2 100644
--- a/app/src/components/Navbar.tsx
+++ b/app/src/components/Navbar.tsx
@@ -32,7 +32,7 @@ function Navbar() {
<a className={styles.link}>Login</a>
</Link>
<Link to={'/signup'}>
- <a className={styles.link}>Signup</a>
+ <a className={styles.link}>Create Account</a>
</Link>
</div>
<div className={styles.right}>
diff --git a/app/src/components/Signup.tsx b/app/src/components/Signup.tsx
index c01784e..0822c46 100644
--- a/app/src/components/Signup.tsx
+++ b/app/src/components/Signup.tsx
@@ -6,7 +6,7 @@ import axios from 'axios';
import Navbar from './Navbar';
function Signup() {
- document.title = 'LinkLogger | Signup';
+ document.title = 'LinkLogger | Create Account';
const [username, setUsername] = useState('');
const [password, setPassword] = useState('');
@@ -65,7 +65,7 @@ function Signup() {
<>
<Navbar />
<div className={styles.container}>
- <h1>Sign up</h1>
+ <h1>Create Account</h1>
<h2 className={error ? styles.errorVisible : styles.errorHidden}>
{error}
</h2>