-
Notifications
You must be signed in to change notification settings - Fork 1
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 #27 from openrice-canada/feat/restaurant
feat: review
- Loading branch information
Showing
14 changed files
with
100 additions
and
155 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
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,39 +1,14 @@ | ||
export type User = { | ||
email?: string; | ||
import { CurrentLoginUserInfo } from "../../redux/auth/authSlice"; | ||
|
||
export type AuthType = { | ||
username?: string; | ||
email?: string; | ||
password: string; | ||
role?: string; | ||
}; | ||
|
||
export type UserEntity = { | ||
user_id: string; | ||
email: string; | ||
username: string; | ||
password: string; | ||
created_at: string; | ||
modifiedAt: string; | ||
active: boolean; | ||
role: string; | ||
enabled: boolean; | ||
authorities: [ | ||
{ | ||
authority: string; | ||
} | ||
]; | ||
accountNonExpired?: boolean; | ||
accountNonLocked?: boolean; | ||
credentialsNonExpired?: boolean; | ||
}; | ||
|
||
export type AuthenticateResponse = { | ||
token?: string; | ||
message?: string; | ||
user?: UserLogin; | ||
user?: CurrentLoginUserInfo; | ||
}; | ||
|
||
export interface UserLogin { | ||
user_id: string; | ||
username: string; | ||
email: string; | ||
role: string; | ||
} |
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
File renamed without changes.
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,12 @@ | ||
const UploadButton: React.FC = () => { | ||
return ( | ||
<button | ||
type="submit" | ||
className="border-gray-700 h-full w-20 flex justify-center items-center rounded-md text-md px-11 py-2 border-2 hover:bg-gray-700 hover:text-white" | ||
> | ||
upload | ||
</button> | ||
); | ||
}; | ||
|
||
export default UploadButton; |
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
Oops, something went wrong.