Skip to content

Commit 56a1854

Browse files
committed
Add song2
1 parent 0a2d6c4 commit 56a1854

File tree

4 files changed

+1119
-6
lines changed

4 files changed

+1119
-6
lines changed

components/PresetCreateForm.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,13 @@ export function PresetCreateForm({
232232
required={!isNewArtist}
233233
>
234234
<option value="">Выберите артиста</option>
235-
{artists.map((artist) => (
236-
<option key={artist.id} value={artist.id}>
237-
{artist.title}
238-
</option>
239-
))}
235+
{artists
236+
.sort((a, b) => a.title.localeCompare(b.title))
237+
.map((artist) => (
238+
<option key={artist.id} value={artist.id}>
239+
{artist.title}
240+
</option>
241+
))}
240242
</select>
241243
)}
242244

data/artists.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,11 @@
136136
"title": "Gary Moore",
137137
"slug": "gary-moore",
138138
"description": "legendary Irish guitarist celebrated for his fiery blues rock style, soulful solos, and unforgettable guitar tone that inspired generations of musicians worldwide"
139+
},
140+
{
141+
"id": 24,
142+
"title": "Blur",
143+
"slug": "blur",
144+
"description": "Iconic British band that defined the Britpop era with their catchy melodies, sharp lyrics, and inventive sound blending rock, pop, and alternative styles."
139145
}
140146
]

0 commit comments

Comments
 (0)