generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: create separate svg component for DownArrow icon, create se…
…parate directory for fixtures and change API url
- Loading branch information
1 parent
87c7172
commit 0d51621
Showing
6 changed files
with
32 additions
and
33 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
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,13 @@ | ||
export const userData = { | ||
data: { | ||
Id: 1, | ||
Username: 'Sunny Sahsi', | ||
Email: 'sunnysahsi@gmail.com', | ||
Password: '', | ||
IsVerified: false, | ||
IsOnboarding: true, | ||
CreatedAt: '2023-11-04T10:02:26.582699Z', | ||
UpdatedAt: '2023-11-04T10:02:26.582699Z', | ||
}, | ||
message: 'user fetched successfully', | ||
}; |
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,13 @@ | ||
const DownArrow = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
className="h-5 w-5 inline-block ml-1 transform group-hover:rotate-180 transition-transform" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" /> | ||
</svg> | ||
); | ||
|
||
export default DownArrow; |
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,3 +1,3 @@ | ||
export const TINY_API_URL = 'https://tiny-site-backend.onrender.com/v1'; | ||
export const TINY_API_URL = 'https://api-tinysite.onrender.com/v1'; | ||
export const TINY_API_GOOGLE_LOGIN = `${TINY_API_URL}/auth/google/login`; | ||
export const TINY_API_LOGOUT = `${TINY_API_URL}/auth/logout`; |