Skip to content

Commit

Permalink
Merge pull request #1 from Bashamega/patch1
Browse files Browse the repository at this point in the history
v0.0.2
  • Loading branch information
Bashamega authored Aug 24, 2024
2 parents 787ca64 + 38a2141 commit 1379716
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "free-ps-banner",
"version": "0.0.1",
"version": "0.0.2",
"private": false,
"description": "A JavaScript library that makes it easy to a free Palestine banner in your react web app",
"author": "Adam Basha",
Expand Down
38 changes: 19 additions & 19 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ To use the `Banner` component in your React project:
1. **Import the Component:**

```tsx
import Banner from 'banner-component';
import Banner from 'free-ps-banner';
import React from 'react';
```

2. **Add the Component to Your JSX:**

```tsx
function App() {
return (
<div className="App">
<Banner
title="Support Human Rights"
showButton={true}
customButtonText="Contribute Now"
customButtonLink="https://example.com/donate"
customButtonClassName="my-button-class"
customClassName="my-banner-class"
/>
</div>
);
}

export default App;
```
```tsx
function App() {
return (
<div className="App">
<Banner
title="Support Human Rights"
showButton={true}
customButtonText="Contribute Now"
customButtonLink="https://example.com/donate"
customButtonClassName="my-button-class"
customClassName="my-banner-class"
/>
</div>
);
}

export default App;
```

## Props

Expand Down
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './components/banner';
import Banner from "./components/banner/Banner";
export default Banner

0 comments on commit 1379716

Please sign in to comment.