updated readme

This commit is contained in:
Yusuf İpek
2021-01-22 19:56:31 +03:00
parent 4a8fed53b6
commit 8ec711fd32
+6 -3
View File
@@ -11,7 +11,9 @@ Run `npm install` then run `npm run`.
### Adding a custom card ### Adding a custom card
For this you need to create an array inside data folder. For example card3.js and add desired websites to array. An example; For this you need to create an array inside data folder. For example card3.js and add desired websites to array. An example;
`export const cards = [
```javascript
export const cards = [
<a href="https://www.protonmail.com/login" target=""> <a href="https://www.protonmail.com/login" target="">
Protonmail Protonmail
</a>, </a>,
@@ -33,8 +35,9 @@ Protonmail
<a href="https:/www.udemy.com" target=""> <a href="https:/www.udemy.com" target="">
Udemy Udemy
</a>, </a>`,
];` ];
```
After adding the new array, head over to app.js and add a `<Card title="Desired Title" list={the.list.you.created} /> After adding the new array, head over to app.js and add a `<Card title="Desired Title" list={the.list.you.created} />