Skip to content
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"jwt-decode": "^3.1.2",
"luxon": "^2.3.1",
"react": "^17.0.2",
"react-chip-input": "^1.1.0",
"react-dom": "^17.0.2",
"react-i18next": "^11.16.2",
"react-router-dom": "^6.3.0",
Expand Down
10 changes: 10 additions & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"verified": "Your email has been successfully verified",
"canLog": "Now You can Log In!"
},
"profile": {
"username": "Name",
"useremail": "Email",
"firstname": "First Name",
"lastname": "Last Name",
"password": "Password",
"button": "Save",
"programming_language": "Programming language",
"button_change_password":"Edit"
},
"team": {
"status": "Status",
"places": {
Expand Down
10 changes: 10 additions & 0 deletions public/locales/pl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@
"verified": "Twój email został pomyślnie zweryfikowany",
"canLog": "Teraz możesz się zalogować!"
},
"profile": {
"username": "Nazwa użytkownika",
"useremail": "Email",
"firstname": "Imię",
"lastname": "Nazwisko",
"password": "Hasło",
"button": "Zapisz",
"programming_language": "Język programowania",
"button_change_password":"Edytuj"
},
"team": {
"status": "Status",
"places": {
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
AddTeamPage,
AllTeamProjectsPage,
ContactPage,
EmailVerificationPage,
// EmailVerificationPage,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do usunięcia?

HomePage,
LoginPage,
MentorNotificationsPage,
Expand Down Expand Up @@ -55,7 +55,7 @@ function App() {

<Route
path={paths.emailVerification}
element={<PublicRoute {...defaultPublicRouteProps} outlet={<EmailVerificationPage />} />}
// element={<PublicRoute {...defaultPublicRouteProps} outlet={<EmailVerificationPage />} />}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jw, jeśli nie to dodaj TODO

/>
<Route path={paths.login} element={<PublicRoute {...defaultPublicRouteProps} outlet={<LoginPage />} />} />
<Route path={paths.signUp} element={<PublicRoute {...defaultPublicRouteProps} outlet={<SignUpPage />} />} />
Expand Down
12 changes: 12 additions & 0 deletions src/components/Profile/Profile.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { IProgrammingLanguage } from "components/Team/IProgrammingLanguege";

export default interface ProfileInterface {
username: string,
email: string,
firstname: string,
lastname: string,
programmingLanguage?: Array<IProgrammingLanguage>,
oldPassword: string,
newPassword: string,
confirmNewPassword: string,
}
Loading