Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Rename NeynarSigninButton -> NeynarAuthButton and add regex to ignore…
Browse files Browse the repository at this point in the history
… stories
  • Loading branch information
Shreyaschorge committed Apr 26, 2024
1 parent 2d2bb57 commit 6af6c47
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ package.json
tsconfig.json

.storybook
*.stories.tsx
src/**/*.stories.tsx

.npmignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from "react";
import { Meta, StoryFn } from "@storybook/react";
import { NeynarSigninButton } from "./index";
import { NeynarAuthButton } from "./index";

export default {
title: "NeynarSigninButton",
component: NeynarSigninButton,
title: "NeynarAuthButton",
component: NeynarAuthButton,
} as Meta;

const Template: StoryFn = (args) => (
<NeynarSigninButton onClick={() => alert("Hello from Neynar")} {...args} />
<NeynarAuthButton onClick={() => alert("Hello from Neynar")} {...args} />
);

export const Primary = Template.bind({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Button = styled.button`
transition: background-color 0.3s;
`;

export const NeynarSigninButton: React.FC<ButtonProps> = ({
export const NeynarAuthButton: React.FC<ButtonProps> = ({
label = "Sign in with Neynar",
onClick,
}) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { NeynarSigninButton } from "./NeynarSigninButton";
export { NeynarAuthButton } from "./NeynarAuthButton";
1 change: 0 additions & 1 deletion src/types/global/declaration.d.ts

This file was deleted.

0 comments on commit 6af6c47

Please sign in to comment.