simplify a bit and remove debug logging
This commit is contained in:
@@ -202,17 +202,11 @@ export function fullFormatter(style, data, values, key) {
|
|||||||
// formatMessage: this.props.intl.formatMessage
|
// formatMessage: this.props.intl.formatMessage
|
||||||
// messages: formatjs messages defined with defineMessages.
|
// messages: formatjs messages defined with defineMessages.
|
||||||
export function previewFormatter(style, data, values, key) {
|
export function previewFormatter(style, data, values, key) {
|
||||||
console.log("Formatting (s, d, v, k):", style, data, values, key);
|
|
||||||
if (!style) {
|
if (!style) {
|
||||||
// Unformatted.
|
// Unformatted.
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (style == 'HD') {
|
|
||||||
// Hidden.
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
let el = Drafty.tagName(style);
|
let el = Drafty.tagName(style);
|
||||||
const attr = { key: key };
|
const attr = { key: key };
|
||||||
switch (style) {
|
switch (style) {
|
||||||
@@ -261,6 +255,7 @@ export function previewFormatter(style, data, values, key) {
|
|||||||
values = [<i key="ex" className="material-icons">attachment</i>, this.formatMessage(messages.drafty_attachment)];
|
values = [<i key="ex" className="material-icons">attachment</i>, this.formatMessage(messages.drafty_attachment)];
|
||||||
break;
|
break;
|
||||||
case 'QQ':
|
case 'QQ':
|
||||||
|
case 'HD':
|
||||||
el = null;
|
el = null;
|
||||||
values = null;
|
values = null;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user