dark mode fixes

This commit is contained in:
Jan Prochazka
2020-11-13 18:43:06 +01:00
parent 08efc787c7
commit 7f7d39cfc2
7 changed files with 20 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import ReactJson from 'react-json-view';
import ErrorInfo from '../widgets/ErrorInfo';
import useTheme from '../theme/useTheme';
const OuterWrapper = styled.div`
flex: 1;
@@ -18,12 +19,13 @@ const InnerWrapper = styled.div`
`;
export default function JsonCellView({ value }) {
const theme = useTheme();
try {
const json = JSON.parse(value);
return (
<OuterWrapper>
<InnerWrapper>
<ReactJson src={json} />
<ReactJson src={json} theme={theme.jsonViewerTheme} />
</InnerWrapper>
</OuterWrapper>
);