test-library-pushlink
v2.1.1
Published
Made with create-react-library
Downloads
2
Readme
test-library-pushlink
Install
npm install --save test-library-pushlink
Usage
import React from 'react'
import PushLink from 'test-library-pushlink'
import 'test-library-pushlink/dist/index.css'
function App() {
let url = 'www.google.com'
let array = [
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe 1',
lastSeen: '11-02-2022',
id: 1001
},
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe 2',
lastSeen: '9-02-2022',
id: 1002
},
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe 3',
lastSeen: '8-02-2022',
id: 1003
},
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe 4',
lastSeen: '5-02-2022',
id: 1004
},
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe',
lastSeen: '4-02-2022',
id: 1005
},
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe',
lastSeen: '3-02-2022',
id: 1006
},
{
avatar:
'https://cdn4.iconfinder.com/data/icons/avatars-xmas-giveaway/128/girl_avatar_child_kid-512.png',
name: 'Dr. Jane Doe',
lastSeen: '11-01-2022',
id: 1007
}
]
return <PushLink url={url} doctorsList={array} />
}
export default App