mirror of
https://github.com/ritz078/transform.git
synced 2026-11-28 11:54:24 +03:00
added accordion for navigation
This commit is contained in:
1 parent
e7aec70db1
commit
88bfa7ab01
12 files changed
+462
-235
No files matched your search
@@ -137,9 +137,13 @@ export default class ConversionPanel extends PureComponent {
|
||||
};
|
||||
|
||||
copyCode = () => {
|
||||
const { rightMode } = this.props
|
||||
const { resultValue } = this.state
|
||||
copy(rightMode !== "rust" ? window.js_beautify(resultValue, { e4x: true }) : resultValue);
|
||||
const { rightMode } = this.props;
|
||||
const { resultValue } = this.state;
|
||||
copy(
|
||||
rightMode !== "rust"
|
||||
? window.js_beautify(resultValue, { e4x: true })
|
||||
: resultValue
|
||||
);
|
||||
this.setState({
|
||||
info: "Code copied to clipboard.",
|
||||
infoType: "success"
|
||||
@@ -348,7 +352,11 @@ export default class ConversionPanel extends PureComponent {
|
||||
theme={theme}
|
||||
name="code"
|
||||
readOnly
|
||||
value={rightMode !== "rust" ? window.js_beautify(resultValue, { e4x: true }) : resultValue}
|
||||
value={
|
||||
rightMode !== "rust"
|
||||
? window.js_beautify(resultValue, { e4x: true })
|
||||
: resultValue
|
||||
}
|
||||
editorProps={{ $blockScrolling: true }}
|
||||
scrollMargin={[20]}
|
||||
fontSize={14}
|
||||
|
||||
Reference in new issue
Block a user