mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
Рефактор: распределение компонентов и страниц по папкам
This commit is contained in:
1 parent
d96a8c564f
commit
8d43bec068
16 files changed
+41
-25
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function UsersWP({ contacts }) {
|
||||
return (
|
||||
<div id="UsersWP">
|
||||
{contacts.length ? (
|
||||
<ul className="nav nav-pills nav-fill flex-column">
|
||||
{contacts.map(contact => (
|
||||
<li key={contact.id} className="nav-item text-start">
|
||||
<Link className="nav-link" to={`contacts/${contact.id}`}>
|
||||
{contact.name ? <>{contact.name}</> : <i>No Name</i>}{' '}
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
) : (
|
||||
<p>
|
||||
<i>No contacts</i>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default UsersWP;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './UsersWP';
|
||||
Reference in new issue
Block a user