Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kriveros-rbi committed Dec 15, 2022
1 parent 78f6460 commit 1837535
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/index.es.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-whatsapp-button",
"version": "1.0.3",
"version": "2.0.0",
"description": "A simple react component to show a Whatsapp floating button.",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import PropTypes from "prop-types";
import "./Button.css";

export const Button = ({
export const ReactWhatsappButton = ({
phoneNumber,
countryCode,
message,
Expand Down Expand Up @@ -49,7 +49,7 @@ export const Button = ({
);
};

Button.propTypes = {
ReactWhatsappButton.propTypes = {
phoneNumber: PropTypes.string.isRequired,
countryCode: PropTypes.string.isRequired,
message: PropTypes.string,
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./components/Button";
import { ReactWhatsappButton } from "./components/Button";
export default ReactWhatsappButton;
6 changes: 3 additions & 3 deletions src/stories/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import React from "react";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";

import { Button } from "../components/Button";
import { ReactWhatsappButton } from "../components/Button";

export default {
title: "Whatsapp Button",
component: Button,
component: ReactWhatsappButton,
args: {
countryCode: "51",
phoneNumber: "987654321",
},
};

const Template = (args) => <Button {...args} />;
const Template = (args) => <ReactWhatsappButton {...args} />;

export const Default = Template.bind({});
Default.args = {
Expand Down

1 comment on commit 1837535

@vercel
Copy link

@vercel vercel bot commented on 1837535 Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.