mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
📑 todods
This commit is contained in:
@ -86,6 +86,7 @@ export default function TopNavigation() {
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
// todo encapsulate
|
||||
fetch("/api/users/me").then((res) => {
|
||||
res.json().then((j) => {
|
||||
setUser(j);
|
||||
|
||||
@ -34,6 +34,7 @@ export default function Setttings() {
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
// todo encapsulate
|
||||
fetch("/api/users/me").then((res) => {
|
||||
res.json().then((j) => {
|
||||
setUser(j);
|
||||
|
||||
@ -30,6 +30,7 @@ export default function Signup(props: { source: string }) {
|
||||
};
|
||||
|
||||
const signUp: SubmitHandler<FormValues> = async (data) => {
|
||||
// todo encapsulate
|
||||
const res = await toast
|
||||
.promise(
|
||||
fetch("/api/auth/signup", {
|
||||
|
||||
Reference in New Issue
Block a user