Skip to content

Commit

Permalink
feat: add test component (#1)
Browse files Browse the repository at this point in the history
* feat: add test component

* build: update chromatic action
  • Loading branch information
aube-dev authored Jan 10, 2023
1 parent 25a4f87 commit 86df22c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: 'Chromatic'
on:
push:
branches:
- 'main'
on: push

jobs:
chromatic-deployment:
Expand Down
8 changes: 8 additions & 0 deletions src/components/common/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Button from './Button';

export default {
title: 'common/Button',
component: Button,
};

export const Default = Button;
7 changes: 7 additions & 0 deletions src/components/common/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
interface Props {
text: string;
}

const Button = ({ text }: Props) => <button>{text}</button>;

export default Button;

1 comment on commit 86df22c

@vercel
Copy link

@vercel vercel bot commented on 86df22c Jan 30, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

web – ./

web-git-main-gdsc-ssu.vercel.app
web-xi-liart.vercel.app
web-gdsc-ssu.vercel.app

Please sign in to comment.