-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #980 from CodeForAfrica/ft/panel_items
Ft/panel_items
- Loading branch information
Showing
8 changed files
with
96 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
apps/climatemappedafrica/src/payload/globals/HURUMap/PanelOptions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import image from "../../fields/image"; | ||
|
||
const PanelOptions = { | ||
label: "Panel Options", | ||
fields: [ | ||
{ | ||
name: "items", | ||
type: "array", | ||
label: "Panel Items", | ||
fields: [ | ||
{ | ||
type: "select", | ||
name: "value", | ||
label: "Value", | ||
options: [ | ||
{ value: "rich-data", label: "Rich Data" }, | ||
{ value: "pin", label: "Pin" }, | ||
], | ||
localized: true, | ||
}, | ||
image({ | ||
overrides: { | ||
name: "icon", | ||
required: true, | ||
}, | ||
}), | ||
], | ||
}, | ||
{ | ||
type: "group", | ||
label: "Labels", | ||
name: "labels", | ||
fields: [ | ||
{ | ||
type: "row", | ||
fields: [ | ||
{ | ||
name: "scrollToTop", | ||
type: "text", | ||
label: "Scroll To Top", | ||
defaultValue: "Scroll To Top", | ||
admin: { | ||
width: "50%", | ||
}, | ||
localized: true, | ||
}, | ||
{ | ||
name: "dataNotAvailable", | ||
type: "text", | ||
label: "Data Not Available", | ||
defaultValue: "DATA NOT AVAILABLE", | ||
admin: { | ||
width: "50%", | ||
}, | ||
localized: true, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
|
||
export default PanelOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters