fix home search bar, update board description

This commit is contained in:
plebeius.eth
2023-08-23 16:29:46 +02:00
parent 1747684298
commit ca794d6107
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -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>
&nbsp;
<span className="name capcode"
style={{cursor: 'pointer'}}
+2 -2
View File
@@ -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}`)