Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into production #2731

Merged
merged 4 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions _data/settings/latest-announcements.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
- isActive: true
image: https://www.starknet.io/assets/final-.jpeg
text: What are onramps and cross rollup bridges?
buttonText: See more
buttonLink: /
- isActive: true
announcements:
- isActive: false
text: Test
image: https://www.starknet.io/assets/guide-image-3-.jpg
text: What are onramps and cross rollup bridges?
buttonText: See more
buttonLink: /
buttonText: Test
buttonLink: https://www.starknet.io/test
2 changes: 1 addition & 1 deletion workspaces/cms-config/src/collections/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export const settingsCollectionConfig = {
},
{
label: "Latest Announcements",
name: "LatestAnnouncements",
name: "latest-announcements",
file: `_data/settings/latest-announcements.yml`,
crowdin: false,
fields: [
Expand Down
2 changes: 1 addition & 1 deletion workspaces/cms-data/src/settings/latest-announcements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function getLatestAnnouncements(
context
);

return latestAnnouncements;
return latestAnnouncements.announcements;
} catch (cause) {
throw new Error("getLatestAnnouncements failed!", {
cause,
Expand Down
Loading