|
@@ -27,21 +27,14 @@ export default function FooterMenu({
|
|
|
const edgeItem = res.data?.themeCustomizations.edges[0];
|
|
const edgeItem = res.data?.themeCustomizations.edges[0];
|
|
|
if(edgeItem) {
|
|
if(edgeItem) {
|
|
|
const options = JSON.parse(edgeItem.node.translation.options);
|
|
const options = JSON.parse(edgeItem.node.translation.options);
|
|
|
- linkList[0] = {
|
|
|
|
|
- title: "Asteria Hair",
|
|
|
|
|
- id: "column_1",
|
|
|
|
|
- list: options['column_1'] || []
|
|
|
|
|
- };
|
|
|
|
|
- linkList[1] = {
|
|
|
|
|
- title: "Guide",
|
|
|
|
|
- id: "column_2",
|
|
|
|
|
- list: options['column_2'] || []
|
|
|
|
|
- };
|
|
|
|
|
- linkList[2] = {
|
|
|
|
|
- title: "How Can We Help",
|
|
|
|
|
- id: "column_3",
|
|
|
|
|
- list: options['column_3'] || []
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ const columnLabels: Record<string,string> = options['column_labels'];
|
|
|
|
|
+ for (const [key, value] of Object.entries(columnLabels)) {
|
|
|
|
|
+ linkList.push( {
|
|
|
|
|
+ title: value,
|
|
|
|
|
+ id: key,
|
|
|
|
|
+ list: options[key] || []
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|