Authored by htoooth

refactor

... ... @@ -6,8 +6,4 @@
const favoriteProductAPI = require('./favorite-product-api');
module.exports.isFavoriteAsync = favoriteProductAPI.isFavoriteAsync;
module.exports.createAsync = favoriteProductAPI.createAsync;
module.exports.deleteAsync = favoriteProductAPI.deleteAsync;
module.exports = favoriteProductAPI;
... ...
... ... @@ -15,29 +15,29 @@ const getHomeChannelNav = (channel) => {
switch (channel) {
case 'boys':
{
home = helpers.urlFormat('', '', 'default');
break;
}
{
home = helpers.urlFormat('', '', 'default');
break;
}
case 'girls':
{
home = helpers.urlFormat('/woman', '', 'new');
break;
}
{
home = helpers.urlFormat('/woman', '', 'new');
break;
}
case 'lifestyle':
{
home = helpers.urlFormat('/lifestyle', '', 'new');
break;
}
{
home = helpers.urlFormat('/lifestyle', '', 'new');
break;
}
case 'kids':
{
home = helpers.urlFormat('/kids', '', 'new');
break;
}
{
home = helpers.urlFormat('/kids', '', 'new');
break;
}
default:
{
home = helpers.urlFormat('', '', 'default');
}
{
home = helpers.urlFormat('', '', 'default');
}
}
... ...