Skip to content

Commit 2178400

Browse files
authored
Merge pull request #2731 from starknet-io/dev
Merge dev into production
2 parents 605ac30 + cb998b3 commit 2178400

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed
+5-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
- isActive: true
2-
image: https://www.starknet.io/assets/final-.jpeg
3-
text: What are onramps and cross rollup bridges?
4-
buttonText: See more
5-
buttonLink: /
6-
- isActive: true
1+
announcements:
2+
- isActive: false
3+
text: Test
74
image: https://www.starknet.io/assets/guide-image-3-.jpg
8-
text: What are onramps and cross rollup bridges?
9-
buttonText: See more
10-
buttonLink: /
5+
buttonText: Test
6+
buttonLink: https://www.starknet.io/test

workspaces/cms-config/src/collections/settings.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export const settingsCollectionConfig = {
383383
},
384384
{
385385
label: "Latest Announcements",
386-
name: "LatestAnnouncements",
386+
name: "latest-announcements",
387387
file: `_data/settings/latest-announcements.yml`,
388388
crowdin: false,
389389
fields: [

workspaces/cms-data/src/settings/latest-announcements.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function getLatestAnnouncements(
1717
context
1818
);
1919

20-
return latestAnnouncements;
20+
return latestAnnouncements.announcements;
2121
} catch (cause) {
2222
throw new Error("getLatestAnnouncements failed!", {
2323
cause,

0 commit comments

Comments
 (0)