Skip to content

Commit c3e7ce7

Browse files
committed
fix: update footer link generation to include URLs in translation array
1 parent 87da0f7 commit c3e7ce7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Helpers/ImportDataHelper.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,19 @@ public static function generateSampleData()
317317
'children' => [
318318
[
319319
'category' => 'footer',
320-
...$generateTranslationArray(['title' => 'About Us']),
320+
...$generateTranslationArray([
321+
'title' => 'About Us',
322+
'url' => '/about-us',
323+
]),
321324
'type' => 'link',
322-
'url' => '/about-us',
323325
],
324326
[
325327
'category' => 'footer',
326-
...$generateTranslationArray(['title' => 'Contact Us']),
328+
...$generateTranslationArray([
329+
'title' => 'Contact Us',
330+
'url' => '/contact-us',
331+
]),
327332
'type' => 'link',
328-
'url' => '/contact-us',
329333
],
330334
],
331335
],

0 commit comments

Comments
 (0)