mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style(rules): sort boards alphabetically
This commit is contained in:
@@ -131,7 +131,9 @@ const BoardSelector = ({
|
|||||||
<div className={styles.selectorRow}>
|
<div className={styles.selectorRow}>
|
||||||
<select value={selectedAddress} onChange={handleSelectChange} className={styles.boardSelect}>
|
<select value={selectedAddress} onChange={handleSelectChange} className={styles.boardSelect}>
|
||||||
<option value=''>Select board...</option>
|
<option value=''>Select board...</option>
|
||||||
{directories.map((sub) => {
|
{[...directories]
|
||||||
|
.sort((a, b) => getBoardShortCode(a.title).localeCompare(getBoardShortCode(b.title)))
|
||||||
|
.map((sub) => {
|
||||||
const shortCode = getBoardShortCode(sub.title);
|
const shortCode = getBoardShortCode(sub.title);
|
||||||
const boardName = getBoardName(sub.title);
|
const boardName = getBoardName(sub.title);
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user