mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 01:00:14 -04:00
* Prettier all the JS files * Add GitHub Action to autoformat code pushed to master * Fix eslint violation due to formatting. * Remove GitHub actions for styling * Add restyled.io config
23 lines
476 B
JavaScript
23 lines
476 B
JavaScript
import React, { forwardRef } from "react";
|
|
import AceEditor from "react-ace";
|
|
|
|
import "./AceEditorInput.less";
|
|
|
|
function AceEditorInput(props, ref) {
|
|
return (
|
|
<div className="ace-editor-input">
|
|
<AceEditor
|
|
ref={ref}
|
|
mode="sql"
|
|
theme="textmate"
|
|
height="100px"
|
|
editorProps={{ $blockScrolling: Infinity }}
|
|
showPrintMargin={false}
|
|
{...props}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default forwardRef(AceEditorInput);
|