Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Oct 20, 2023
1 parent 07eed3c commit e9b99c3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion renderer/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Sidebar.propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.element),
PropTypes.element
])
])
}
export default Sidebar

Expand Down
5 changes: 1 addition & 4 deletions renderer/components/onboard/Sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
Flex,
Heading
} from 'ooni-components'
import NLink from 'next/link'

import FormattedMarkdownMessage from '../FormattedMarkdownMessage'
import ExternalLink from '../ExternalLink'
Expand Down Expand Up @@ -92,9 +91,7 @@ const SectionThingsToKnow = ({onNext, quizActive, quizComplete, toggleQuiz, onQu
</Button>
</Box>
<Box mt={3} mx='auto'>
<NLink href='https://ooni.org/about/risks/' passHref>
<ExternalLink color='gray3'><FormattedMessage id="Settings.About.Content.LearnMore" /></ExternalLink>
</NLink>
<ExternalLink href='https://ooni.org/about/risks/' color='gray3'><FormattedMessage id="Settings.About.Content.LearnMore" /></ExternalLink>
</Box>
</Flex>
</div>
Expand Down
34 changes: 17 additions & 17 deletions renderer/components/settings/widgets.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import React, { useCallback, useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import {
Box,
Label,
// Box,
// Label,
Checkbox,
Input,
} from 'ooni-components'
import styled from 'styled-components'
// import styled from 'styled-components'
import log from 'electron-log/renderer'

import { useConfig } from './useConfig'
import { FormattedMessage } from 'react-intl'

const StyledLabel = styled(Label)`
color: ${props => props.disabled ? props.theme.colors.gray6 : 'inherited'};
cursor: ${props => props.disabled ? 'not-allowed' : 'inherited'};
& input,select,option {
color: ${props => props.disabled ? props.theme.colors.gray6 : 'inherited'};
cursor: ${props => props.disabled ? 'not-allowed' : 'inherited'};
}
`

const StyledErrorMessage = styled(Box).attrs({
fontSize: '10px'
})`
color: ${props => props.theme.colors.red5};
`
// const StyledLabel = styled(Label)`
// color: ${props => props.disabled ? props.theme.colors.gray6 : 'inherited'};
// cursor: ${props => props.disabled ? 'not-allowed' : 'inherited'};
// & input,select,option {
// color: ${props => props.disabled ? props.theme.colors.gray6 : 'inherited'};
// cursor: ${props => props.disabled ? 'not-allowed' : 'inherited'};
// }
// `

// const StyledErrorMessage = styled(Box).attrs({
// fontSize: '10px'
// })`
// color: ${props => props.theme.colors.red5};
// `

export const BooleanOption = ({ label, optionKey, disabled = false, onChange, ...rest }) => {
const [checked, setConfigValue] = useConfig(optionKey)
Expand Down
3 changes: 2 additions & 1 deletion renderer/components/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import log from 'electron-log/renderer'

export const openInBrowser = (url, event) => {
// export const openInBrowser = (url, event) => {
export const openInBrowser = () => {
// var shell = require('shell')
// event.preventDefault()
// shell.openExternal(url)
Expand Down

0 comments on commit e9b99c3

Please sign in to comment.