This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from trashtrack-team/feat/user
- Loading branch information
Showing
18 changed files
with
1,204 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,7 @@ note.txt | |
.DS_Store | ||
Thumbs.db | ||
|
||
.nx/cache | ||
.nx/cache | ||
|
||
# to be removed later | ||
libs/utils/src/app-constants.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { IonContent, IonPage } from "@ionic/react"; | ||
import { ChangePasswordForm, CreateTrashBinForm, CreateUserForm } from "@trashtrack/ui"; | ||
import { useTranslation } from "react-i18next"; | ||
import { useParams } from "react-router-dom"; | ||
|
||
export function ChangePasswordPage() { | ||
const { user_id } = useParams<{ user_id: string }>(); | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<IonPage> | ||
<IonContent className="ion-padding" fullscreen> | ||
<div className="pt-12"> | ||
<h1 className="font-bold text-left text-xl">TrashTrack</h1> | ||
<p className="text-xs text-left text-slate-600">{t("operator.user.change_password.subtitle")}</p> | ||
</div> | ||
<div className="flex flex-col pt-8 gap-2"> | ||
<ChangePasswordForm userId={user_id} /> | ||
</div> | ||
</IonContent> | ||
</IonPage> | ||
); | ||
} | ||
|
||
export default ChangePasswordPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
import { IonContent, IonPage } from "@ionic/react"; | ||
import { ChangeTrashbinForm, ChangeUserForm } from "@trashtrack/ui"; | ||
import { useTranslation } from "react-i18next"; | ||
import { useParams } from "react-router-dom"; | ||
|
||
export function ChangeUserPage() { | ||
const { user_id } = useParams<{ user_id: string }>(); | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div> | ||
<div></div> | ||
</div> | ||
<IonPage> | ||
<IonContent className="ion-padding" fullscreen> | ||
<div className="pt-12"> | ||
<h1 className="font-bold text-left text-xl">TrashTrack</h1> | ||
<p className="text-xs text-left text-slate-600">{t("operator.user.change_user.subtitle")}</p> | ||
</div> | ||
<div className="flex flex-col pt-8 gap-2"> | ||
<ChangeUserForm userId={user_id} /> | ||
</div> | ||
</IonContent> | ||
</IonPage> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
import { IonContent, IonPage } from "@ionic/react"; | ||
import { CreateTrashBinForm, CreateUserForm } from "@trashtrack/ui"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
export function CreateUserPage() { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div> | ||
<div></div> | ||
</div> | ||
<IonPage> | ||
<IonContent className="ion-padding" fullscreen> | ||
<div className="pt-12"> | ||
<h1 className="font-bold text-left text-xl">TrashTrack</h1> | ||
<p className="text-xs text-left text-slate-600">{t("operator.user.create_user.subtitle")}</p> | ||
</div> | ||
<div className="flex flex-col pt-8 gap-2"> | ||
<CreateUserForm /> | ||
</div> | ||
</IonContent> | ||
</IonPage> | ||
); | ||
} | ||
|
||
export default CreateUserPage; |
Oops, something went wrong.