mirror of
https://github.com/lemeow125/Reactnative-notesapp.git
synced 2025-05-16 11:28:15 +08:00
Integrate api for login
This commit is contained in:
parent
0318f4eb53
commit
c597e9eaab
11 changed files with 4923 additions and 466 deletions
|
@ -6,3 +6,62 @@ export interface IconProps {
|
|||
export interface RootDrawerParamList {
|
||||
navigate: any;
|
||||
}
|
||||
|
||||
// Redux Interfaces
|
||||
export interface LoginState {
|
||||
Login: { logged_in: boolean };
|
||||
}
|
||||
|
||||
export interface LoggedInUserState {
|
||||
LoggedInUser: {
|
||||
value: {
|
||||
email: string;
|
||||
id: number;
|
||||
username: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
// Component Props Interfaces
|
||||
|
||||
export interface NoteProps {
|
||||
title: string;
|
||||
content: string;
|
||||
id: number;
|
||||
date_created: Date;
|
||||
owner: string;
|
||||
}
|
||||
|
||||
export interface IconProps {
|
||||
size: number;
|
||||
color: string;
|
||||
}
|
||||
|
||||
// API Interfaces
|
||||
|
||||
export interface RegistrationParams {
|
||||
email: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface LoginParams {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface ActivationParams {
|
||||
uid: string;
|
||||
token: string;
|
||||
}
|
||||
|
||||
export interface AddNoteParams {
|
||||
title: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface UpdateNoteParams {
|
||||
id: number;
|
||||
title: string;
|
||||
content: string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue