Skip to content

Commit 15c6653

Browse files
authored
docs: update Readme
1 parent eca3d2f commit 15c6653

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,15 @@ hook config.
318318

319319
```typescript
320320
import './App.css';
321-
import { useGithubAutomatedRepos, ProjectIcons, StackIcons, StackLabels, } from 'github-automated-repos';
321+
import { useGitHubAutomatedRepos, ProjectIcons, StackIcons, StackLabels, } from 'github-automated-repos';
322322
function App() {
323323
{/*useGithubAutomatedRepos hook*/ }
324-
const data = useGithubAutomatedRepos("GitHubUsername", "KeyWord");
324+
const data = useGitHubAutomatedRepos("GitHubUsername", "KeyWord");
325325

326326
return (
327327
<div className="App">
328328
{
329-
repository.map((item) => {
329+
data.map((item) => {
330330
return (
331331
<div key={item.id}>
332332

@@ -351,11 +351,13 @@ hook config.
351351
<h3>Homepage</h3>
352352
</a>
353353

354-
{/*Stacks Icon*/}
354+
{/*Stacks Icon and Stacks Label*/}
355355
{item.topics.map((icon) => {
356356
return (
357-
<StackIcons key={icon} className="stack_Icon" itemTopics={icon} />
358-
<StackText key={topics} itemTopics={topics} />
357+
<div style={{display:'flex', justifyContent:'center'}}>
358+
<StackIcons key={icon} className="stack_Icon" itemTopics={icon} />
359+
<StackLabels key={icon} itemTopics={icon} />
360+
</div>
359361
)
360362
})}
361363

0 commit comments

Comments
 (0)