2020-10-16 13:16:01 +00:00
|
|
|
import React from "react";
|
2021-03-10 14:21:32 +00:00
|
|
|
import SocialButton from "./";
|
2020-10-16 13:16:01 +00:00
|
|
|
|
2021-03-10 14:21:32 +00:00
|
|
|
export default {
|
|
|
|
title: "Components/SocialButtons",
|
|
|
|
component: SocialButton,
|
|
|
|
parameters: {
|
|
|
|
docs: {
|
|
|
|
description: {
|
|
|
|
component: "Button is used for sign up with help social networks",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
argTypes: {
|
|
|
|
onClick: { action: "onClick" },
|
|
|
|
iconName: {
|
|
|
|
control: {
|
|
|
|
type: "select",
|
|
|
|
options: [
|
|
|
|
"static/images/share.google.react.svg",
|
|
|
|
//"ShareFacebookIcon",
|
|
|
|
//"ShareTwitterIcon",
|
|
|
|
"static/images/share.linkedin.react.svg",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2019-11-15 10:22:03 +00:00
|
|
|
|
2021-03-10 14:21:32 +00:00
|
|
|
const Template = ({ onClick, ...args }) => {
|
|
|
|
return <SocialButton {...args} onClick={() => onClick("clicked")} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Default = Template.bind({});
|
|
|
|
Default.args = {
|
|
|
|
label: "Base SocialButton",
|
|
|
|
iconName: "static/images/share.google.react.svg",
|
|
|
|
isDisabled: false,
|
|
|
|
};
|