mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix home search bar, update board description
This commit is contained in:
@@ -507,7 +507,6 @@ const Board = () => {
|
||||
updateSigner();
|
||||
}
|
||||
}, [updateSigner, anonymousMode]);
|
||||
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
@@ -1246,7 +1245,7 @@ const Board = () => {
|
||||
</div>
|
||||
) : null}
|
||||
<span className="name-block">
|
||||
<span className="title">Welcome to {subplebbit.title || subplebbit.address}</span>
|
||||
<span className="title">Welcome to {subplebbit.title || subplebbit.address}!</span>
|
||||
|
||||
<span className="name capcode"
|
||||
style={{cursor: 'pointer'}}
|
||||
|
||||
@@ -85,7 +85,7 @@ const Home = () => {
|
||||
(event) => {
|
||||
if (event.key === "Enter") {
|
||||
event.preventDefault();
|
||||
const address = inputRef.current.value.toLowerCase();;
|
||||
const address = inputRef.current.value;
|
||||
if (address) {
|
||||
setSelectedAddress(address);
|
||||
navigate(`/p/${address}`)
|
||||
@@ -94,7 +94,7 @@ const Home = () => {
|
||||
}} />
|
||||
<input type="submit" value="Search" onClick={
|
||||
() => {
|
||||
const address = inputRef.current.value.toLowerCase();;
|
||||
const address = inputRef.current.value;
|
||||
if (address) {
|
||||
setSelectedAddress(address);
|
||||
navigate(`/p/${address}`)
|
||||
|
||||
Reference in New Issue
Block a user