feat: link to login page to add account
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
import { useDbContext } from "@/context/db/db";
|
import { useDbContext } from "@/context/db";
|
||||||
import { type LocalAccount, useAccountRepo } from "@/repository/account";
|
import { type LocalAccount, useAccountRepo } from "@/repository/account";
|
||||||
import { CirclePlus, User } from "lucide-react";
|
import { CirclePlus, User } from "lucide-react";
|
||||||
import { useEffect, useState, type FC } from "react";
|
import { useEffect, useState, type FC } from "react";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
const AccountList: FC = () => {
|
const AccountList: FC = () => {
|
||||||
const [accounts, setAccounts] = useState<LocalAccount[]>([]);
|
const [accounts, setAccounts] = useState<LocalAccount[]>([]);
|
||||||
@ -72,6 +73,7 @@ const AccountList: FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
<Link to="/login">
|
||||||
<div className="flex flex-row items-center p-4 border-gray-200 dark:border-gray-700/65 border-b border-r-0 border-l-0 select-none cursor-pointer hover:bg-gray-50/50 dark:hover:bg-gray-800/10 transition-colors mb-0">
|
<div className="flex flex-row items-center p-4 border-gray-200 dark:border-gray-700/65 border-b border-r-0 border-l-0 select-none cursor-pointer hover:bg-gray-50/50 dark:hover:bg-gray-800/10 transition-colors mb-0">
|
||||||
<div>
|
<div>
|
||||||
<div className="rounded-full p-2 text-gray-900 dark:text-gray-200 mr-3">
|
<div className="rounded-full p-2 text-gray-900 dark:text-gray-200 mr-3">
|
||||||
@ -82,6 +84,7 @@ const AccountList: FC = () => {
|
|||||||
Add new account
|
Add new account
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
</Link>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user