fix: settings col width in advanced view (#233)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`RawEditor renders as expected with content equal to null 1`] = `
|
||||
<Fragment>
|
||||
<div>
|
||||
<Alert
|
||||
variant="danger"
|
||||
>
|
||||
@@ -9,11 +9,11 @@ exports[`RawEditor renders as expected with content equal to null 1`] = `
|
||||
html
|
||||
editor.
|
||||
</Alert>
|
||||
</Fragment>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`RawEditor renders as expected with default behavior 1`] = `
|
||||
<Fragment>
|
||||
<div>
|
||||
<Alert
|
||||
variant="danger"
|
||||
>
|
||||
@@ -32,11 +32,11 @@ exports[`RawEditor renders as expected with default behavior 1`] = `
|
||||
lang="html"
|
||||
value="eDiTablE Text"
|
||||
/>
|
||||
</Fragment>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`RawEditor renders as expected with lang equal to xml 1`] = `
|
||||
<Fragment>
|
||||
<div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
innerRef={
|
||||
Object {
|
||||
@@ -48,5 +48,5 @@ exports[`RawEditor renders as expected with lang equal to xml 1`] = `
|
||||
lang="xml"
|
||||
value="eDiTablE Text"
|
||||
/>
|
||||
</Fragment>
|
||||
</div>
|
||||
`;
|
||||
|
||||
@@ -18,7 +18,7 @@ export const RawEditor = ({
|
||||
const value = getValue(content);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
{lang === 'xml' ? null : (
|
||||
<Alert variant="danger">
|
||||
You are using the raw {lang} editor.
|
||||
@@ -32,7 +32,7 @@ export const RawEditor = ({
|
||||
/>
|
||||
) : null}
|
||||
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
RawEditor.defaultProps = {
|
||||
|
||||
@@ -30,6 +30,7 @@ describe('RawEditor', () => {
|
||||
},
|
||||
content: null,
|
||||
lang: 'html',
|
||||
width: { width: '80%' },
|
||||
};
|
||||
|
||||
test('renders as expected with default behavior', () => {
|
||||
|
||||
Reference in New Issue
Block a user