Skip to content

Instantly share code, notes, and snippets.

@FBosler
Last active February 9, 2020 13:46
Show Gist options
  • Save FBosler/b3f28bcd7213340a50690d591500b913 to your computer and use it in GitHub Desktop.
Save FBosler/b3f28bcd7213340a50690d591500b913 to your computer and use it in GitHub Desktop.
DelegatedAuthList/index.jsx
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