diff --git a/components/ConversionPanel.js b/components/ConversionPanel.js
index a63144c..2aad284 100644
--- a/components/ConversionPanel.js
+++ b/components/ConversionPanel.js
@@ -43,7 +43,7 @@ type Props = {
onCheckboxChange: Function,
checkboxText: ?string,
pathname: string,
- initialCheckboxValue: boolean,
+ initialCheckboxValue: ?boolean,
leftTitle: string,
rightTitle: string,
prettifyRightPanel: ?boolean
@@ -183,7 +183,7 @@ export default class ConversionPanel extends PureComponent {
.footer {
height: 50px;
width: 100%;
- font-family: 'Lato';
+ font-family: "Lato";
background-color: white;
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
z-index: 99;
@@ -221,8 +221,8 @@ export default class ConversionPanel extends PureComponent {
.info {
color: white;
- font: 14px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas',
- 'source-code-pro', monospace;
+ font: 14px/normal "Monaco", "Menlo", "Ubuntu Mono", "Consolas",
+ "source-code-pro", monospace;
}
.btn {
@@ -252,7 +252,7 @@ export default class ConversionPanel extends PureComponent {
padding: 0 10px;
position: relative;
justify-content: space-between;
- font-family: 'Lato';
+ font-family: "Lato";
}
.title {
@@ -295,7 +295,7 @@ export default class ConversionPanel extends PureComponent {
}
label {
- font-family: 'Lato';
+ font-family: "Lato";
padding: 0 12px;
cursor: pointer;
}
@@ -309,14 +309,12 @@ export default class ConversionPanel extends PureComponent {
-
- {leftTitle}
-
+
{leftTitle}
- {isBrowser &&
+ {isBrowser && (
}
+ />
+ )}
-
- {rightTitle}
-
- {onCheckboxChange &&
+
{rightTitle}
+ {onCheckboxChange && (
}
+
+ )}
- {isBrowser &&
+ {isBrowser && (
}
+ />
+ )}
-
- {info}
-
+ {info}
);
diff --git a/components/Layout.js b/components/Layout.js
index 56e1ecc..e16dc7f 100644
--- a/components/Layout.js
+++ b/components/Layout.js
@@ -132,6 +132,16 @@ const x = [
path: "/graphql-to-typescript"
}
]
+ },
+ {
+ category: "XML",
+ iconName: "icon-html",
+ content: [
+ {
+ label: "XML to JSON",
+ path: "/xml-to-json"
+ }
+ ]
}
];
@@ -157,7 +167,8 @@ function trackingScript() {
i[r] ||
function() {
(i[r].q = i[r].q || []).push(arguments);
- }), (i[r].l = 1 * new Date());
+ }),
+ (i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
@@ -182,10 +193,7 @@ function renderFuzzyPicker(isOpen, onClose) {
onChange={choice => Router.push(choice.path)}
items={routes}
itemValue={item => item.label}
- renderItem={item =>
-
- {item.label}
- }
+ renderItem={item => {item.label}}
/>
);
}
@@ -287,7 +295,7 @@ export default class Layout extends PureComponent {
height: 70px;
text-align: center;
color: #fff;
- font-family: 'Lato', sans-serif;
+ font-family: "Lato", sans-serif;
}
.footer svg {
@@ -323,7 +331,7 @@ export default class Layout extends PureComponent {
}
.info {
- font-family: 'Lato';
+ font-family: "Lato";
color: white;
border: 1px solid #7b7b7b;
padding: 8px;
@@ -337,7 +345,7 @@ export default class Layout extends PureComponent {