-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into ft-product-display-##187419124
- Loading branch information
Showing
5 changed files
with
53 additions
and
22 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,24 @@ | ||
import PropTypes from "prop-types"; | ||
import { FcGoogle } from "react-icons/fc"; | ||
|
||
interface GoogleAuthLinkProps { | ||
baseUrl?: string; | ||
} | ||
|
||
export const GoogleAuthLink = ({ baseUrl }: GoogleAuthLinkProps) => { | ||
const finalBaseUrl = baseUrl || ""; | ||
|
||
return ( | ||
<a | ||
href={`${finalBaseUrl}/users/auth/google`} | ||
className="border flex items-center font-normal justify-center py-2.5 text-[16px] rounded-sm w-full" | ||
> | ||
<FcGoogle className="mr-3 text-2xl" /> | ||
Sign in with Google | ||
</a> | ||
); | ||
}; | ||
|
||
GoogleAuthLink.propTypes = { | ||
baseUrl: PropTypes.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