这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions console/src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ class App extends Component {
);
}

if (telemetry.console_opts) {
if (!telemetry.console_opts.telemetryNotificationShown) {
dispatch(showTelemetryNotification());
dispatch(telemetryNotificationShown());
}
if (telemetry.console_opts && !telemetry.console_opts.telemetryNotificationShown) {
dispatch(showTelemetryNotification());
dispatch(telemetryNotificationShown());
}

return (
Expand Down
7 changes: 4 additions & 3 deletions console/src/components/Common/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import React from 'react';
import styles from '../Common.scss';

/*
This is a Button HOC that takes al the props supported by <button> and also
- color: (default: white) color of the button; currently supports yellow, red, green, gray, white
This is a Button HOC that takes all the props supported by <button>
- color(default: white): color of the button; currently supports yellow, red, green, gray and white
- size: size of the button; currently supports xs (extra small), sm(small)
- className: although you can provide any CSS classname, it is recommended to use only the positioning related classes and not the ones that change the appearance (color, font, size) of the button
- className: although you can provide any CSS classname, it is recommended to use only the positioning related classes
and not the ones that change the appearance (color, font, size) of the button
*/

const Button = props => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class QueryBuilderJson extends React.Component {
};

const isCustomJsonObject = object => {
// check if is array
// check if it is an array
if (object instanceof Array) {
// if empty array
if (object.length === 0) {
Expand Down Expand Up @@ -68,7 +68,7 @@ class QueryBuilderJson extends React.Component {
return true;
}

// check if is object and not a React element
// check if it is an object and not a React element
return object instanceof Object && !React.isValidElement(object);
};

Expand Down