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:
@@ -509,7 +509,6 @@ const Board = () => {
|
|||||||
}, [updateSigner, anonymousMode]);
|
}, [updateSigner, anonymousMode]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (publishCommentOptions && triggerPublishComment) {
|
if (publishCommentOptions && triggerPublishComment) {
|
||||||
(async () => {
|
(async () => {
|
||||||
@@ -1246,7 +1245,7 @@ const Board = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<span className="name-block">
|
<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"
|
<span className="name capcode"
|
||||||
style={{cursor: 'pointer'}}
|
style={{cursor: 'pointer'}}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const Home = () => {
|
|||||||
(event) => {
|
(event) => {
|
||||||
if (event.key === "Enter") {
|
if (event.key === "Enter") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const address = inputRef.current.value.toLowerCase();;
|
const address = inputRef.current.value;
|
||||||
if (address) {
|
if (address) {
|
||||||
setSelectedAddress(address);
|
setSelectedAddress(address);
|
||||||
navigate(`/p/${address}`)
|
navigate(`/p/${address}`)
|
||||||
@@ -94,7 +94,7 @@ const Home = () => {
|
|||||||
}} />
|
}} />
|
||||||
<input type="submit" value="Search" onClick={
|
<input type="submit" value="Search" onClick={
|
||||||
() => {
|
() => {
|
||||||
const address = inputRef.current.value.toLowerCase();;
|
const address = inputRef.current.value;
|
||||||
if (address) {
|
if (address) {
|
||||||
setSelectedAddress(address);
|
setSelectedAddress(address);
|
||||||
navigate(`/p/${address}`)
|
navigate(`/p/${address}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user