feat(issue12): Adds info for Urukul
This commit is contained in:
parent
80b074102a
commit
1f81e1ed0e
@ -1654,6 +1654,13 @@ class Shop extends React.PureComponent {
|
||||
});
|
||||
|
||||
|
||||
if (itemsCloned.find(elem => elem.type === 'urukul')) {
|
||||
if (this.state.items['urukul'].rules.info) {
|
||||
rules[this.state.items['urukul'].rules.info.type] = {...this.state.items['urukul'].rules.info};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// check if IDC-BNC is correctly positionned (after Zotino or HD68)
|
||||
const idxIDCBNC = itemsCloned.reduce((prev, next, i) => {
|
||||
if (next.type === 'idc-bnc') {
|
||||
|
11
static/js/shop.min.js
vendored
11
static/js/shop.min.js
vendored
@ -1701,7 +1701,16 @@ function (_React$PureComponent12) {
|
||||
}
|
||||
|
||||
return _type;
|
||||
}); // check if IDC-BNC is correctly positionned (after Zotino or HD68)
|
||||
});
|
||||
|
||||
if (itemsCloned.find(function (elem) {
|
||||
return elem.type === 'urukul';
|
||||
})) {
|
||||
if (this.state.items['urukul'].rules.info) {
|
||||
rules[this.state.items['urukul'].rules.info.type] = _objectSpread({}, this.state.items['urukul'].rules.info);
|
||||
}
|
||||
} // check if IDC-BNC is correctly positionned (after Zotino or HD68)
|
||||
|
||||
|
||||
var idxIDCBNC = itemsCloned.reduce(function (prev, next, i) {
|
||||
if (next.type === 'idc-bnc') {
|
||||
|
@ -259,6 +259,12 @@ const shop_data = {
|
||||
name: 'Urukul',
|
||||
message: 'This configuration uses 2 EEM connectors as it is recommended. If you prefer to use 1 EEM connector, please inform us by leaving an additional note.',
|
||||
},
|
||||
info: {
|
||||
type: 'urukul-info',
|
||||
icon: '/shop/icon-reminder.svg',
|
||||
name: 'Urukul',
|
||||
message: 'The default chip is AD9910, which supports more features. If you need the higher frequency resolution of the AD9912, leave us a note.',
|
||||
},
|
||||
resources: {
|
||||
type: 'urukul',
|
||||
icon: '/shop/icon-warning.svg',
|
||||
|
Loading…
Reference in New Issue
Block a user