Last active
February 9, 2020 13:46
-
-
Save FBosler/b3f28bcd7213340a50690d591500b913 to your computer and use it in GitHub Desktop.
DelegatedAuthList/index.jsx
This file contains hidden or 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
import providerData from "../../data/providerData"; | |
import { Col } from "react-bootstrap"; | |
import React from "react"; | |
import { ImageDiv, ColoredDiv, MarginedRow } from "./styles.js"; | |
const DelegatedAuthButton = ({ img, href, color }) => { | |
return ( | |
<Col xs={2} onClick={() => (window.location = href)} style={{ padding: "5px" }}> | |
<ColoredDiv color={color}> | |
<ImageDiv img={img} color={color} /> | |
</ColoredDiv> | |
</Col> | |
); | |
}; | |
const DelegatedAuthList = () => { | |
return ( | |
<MarginedRow> | |
{providerData.map(provider => { | |
return <DelegatedAuthButton {...provider} key={provider.name} />; | |
})} | |
</MarginedRow> | |
); | |
}; | |
export default DelegatedAuthList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment