Skip to content

Instantly share code, notes, and snippets.

@prinzdezibel
Last active January 12, 2018 17:07
Show Gist options
  • Save prinzdezibel/d17bf8c57fb7bc5bcea3c89d343a7f90 to your computer and use it in GitHub Desktop.
Save prinzdezibel/d17bf8c57fb7bc5bcea3c89d343a7f90 to your computer and use it in GitHub Desktop.
import React from "react";
import { Components } from "@reactioncommerce/reaction-components";
import { default as CoreProductAdmin } from "/imports/plugins/included/product-admin/client/components/productAdmin";
import { replaceComponent } from "@reactioncommerce/reaction-components";
class ProductAdmin extends CoreProductAdmin {
render() {
return (
// -------------- %< --------------------
// more stuff
// -------------- %< --------------------
<Components.Divider />
<div className="row">
<div className="col-sm-12">
<Components.TextField
i18nKeyLabel="productVariant.featuredProductLabel"
i18nKeyPlaceholder=""
placeholder=""
label="Featured product label"
name="featuredProductLabel"
ref="featuredProductLabel"
value={this.product.featuredProductLabel}
onBlur={this.handleFieldBlur}
onChange={this.handleFieldChange}
onReturnKeyDown={this.handleFieldBlur}
/>
</div>
</div>
// -------------- %< --------------------
// more stuff
// -------------- %< --------------------
);
}
}
replaceComponent("ProductAdmin", ProductAdmin);
export default ProductAdmin;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment