error: Detected X Server version 'XServer _64a' is not supported. Supported versions are X.Org 6.9 or later, up to XServer 1.10 (default:v2:x86_64:lib32:XServer _64a:none:5.15.0-27-generic:)
Installation will not proceed.
Removing temporary directory: fglrx-install.HjRLMV
function dragHandler(e, board, item) {
e.preventDefault()
const currentIndex = currentBoard.items.indexOf(currentItem)
currentBoard.items.splice(currentIndex, 1)
const dropIndex = board.items.indexOf(item)
board.items.splice(dropIndex + 1, 0, currentItem)
setBoards(boards.map(b => {
if (b.id === board.id) {
return board
}
if (b.id === currentBoard.id) {
return currentBoard
}
return b
}))
}
function dragHandler(e, board, item) {
e.preventDefault()
const currentIndex = currentBoard.items.indexOf(currentItem)
currentBoard.items.splice(currentIndex, 1)
const dropIndex = board.items.indexOf(item)
board.items.splice(dropIndex + 1, 0, currentItem)
setBoards(boards.map(b => {
if (b.id === board.id) {
return board
}
if (b.id === currentBoard.id) {
return currentBoard
}
return b
}))
}
const Navbar = (topActive, setTopActive) => {
const [menuActive, setMenuActive] = useState(false)
return (
<div>
<div className="burger-btn" onClick={function () {
setMenuActive(!menuActive)
setTopActive(!topActive)
}}>
<span/>
</div>
<nav className={menuActive ? style.nav +" menu-active" : style.nav}>
<NavLink to="/"><img src={logo}/></NavLink>
<ul>
<li><NavLink to="/">Home</NavLink></li>
<li><NavLink to="/transaction">Transaction</NavLink></li>
<li><NavLink to="/users">Users</NavLink></li>
<li><NavLink to="/todos">Todos</NavLink></li>
<li><NavLink to="/analytics">Analytics</NavLink></li>
</ul>
</nav>
</div>
)
}
на данный момент у меня не получается проверить существует такой пользователь или нет! То что я описал выше!