Skip to content

Commit

Permalink
CommonDetails style
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Jul 16, 2024
1 parent 8f24ec3 commit 87a2ef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 4 additions & 4 deletions components/measurement/CommonDetails.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import { Button, colors } from 'ooni-components'
import { colors } from 'ooni-components'
import PropTypes from 'prop-types'
import { useState } from 'react'
import { FormattedMessage, useIntl } from 'react-intl'

import { DetailsBox, DetailsBoxTable } from './DetailsBox'

const LoadingRawData = (props) => {
const LoadingRawData = () => {
return (
<div className="text-base">
<FormattedMessage id="General.Loading" />
Expand All @@ -21,9 +21,9 @@ const ReactJson = dynamic(() => import('react-json-view'), {
})

const JsonViewer = ({ src, collapsed }) => (
<StyledReactJsonContainer>
<div className="[&_.string-value]:overflow-ellipsis [&_.string-value]:max-w-[800px] [&_.string-value]:overflow-hidden [&_.string-value]:inline-block">
<ReactJson collapsed={collapsed} src={src} name={null} indentWidth={2} />
</StyledReactJsonContainer>
</div>
)

JsonViewer.propTypes = {
Expand Down
7 changes: 0 additions & 7 deletions scripts/now-preview.sh

This file was deleted.

0 comments on commit 87a2ef0

Please sign in to comment.