Skip to content

Commit

Permalink
Add sample show rely on
Browse files Browse the repository at this point in the history
  • Loading branch information
huy9x101 committed Dec 18, 2024
1 parent 8890226 commit 453f449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/markets/pr_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ Each json file under the [configs](../../configs) folder correspond to their res
|`show_until` |`string` |false |The date and time when the market banner is scheduled to stop displaying. |If not provided, the banner will continue to display indefinitely.<br /><br /> This field **MUST** follow the valid ISO 8601 format <br /> e.g. *2024-01-23T09:00+00:00* (23 Jan 2024, 9am UTC) |
|`content` |`string` |true |The content shown on the market banner. |
|`hideable` |`boolean` |false |Indicates if user can hide the banner by clicking on the close button |If set to `false`, the close button will not be rendered on the banner, and user will not be able to dismiss the banner. |
|`show_only_on` |`string[]` |true |Default is empty list, then banner will be shown on all pages |If list has specified path(s), the banner will be shown on these/that path(s) only. |
|`show_only_on` |`string[]` |true |Default is empty list, then banner will be shown on all pages |If list has specified path(s), the banner will be shown on these/that path(s) only, sample: `['/rewards', '/nitron']` |
5 changes: 4 additions & 1 deletion configs/devnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
"show_until": "2024-12-17T11:10+00:00",
"content": "Demex will be down for maintenance from 13:00 - 18:00 UTC, 20 Dec. We recommend closing any open orders during this time to minimize potential risks.",
"hideable": true,
"show_only_on": []
"show_only_on": [
"/rewards",
"/nitron"
]
}
}

0 comments on commit 453f449

Please sign in to comment.