Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mariana-mendes committed Feb 5, 2020
1 parent ebb2195 commit 20955cf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
15 changes: 8 additions & 7 deletions react/components/FilterBar/FilterTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ class FilterTag extends PureComponent {
<div className="flex items-center justify-center h-100 ph3 ">
<span className="flex items-center nl1 nowrap">
{isMoreOptions ? (
<span className="fw5" data-testid={testIds.moreOptionsButton}>
<span
className="fw5"
data-testid={testIds.moreOptionsButton}>
{getFilterLabel()}
</span>
) : isMobile ? (
Expand Down Expand Up @@ -282,7 +284,7 @@ class FilterTag extends PureComponent {
}
/>
</div>
<div className="flex justify-end mt4 mh3" >
<div className="flex justify-end mt4 mh3">
<Button
testId={testIds.submitFiltersButton}
block={isMobile}
Expand Down Expand Up @@ -319,7 +321,7 @@ FilterTag.defaultProps = {
isMoreOptions: false,
subjectPlaceholder: '…',
newFilterLabel: 'New filter',
testIds: {}
testIds: {},
}

FilterTag.propTypes = {
Expand All @@ -336,11 +338,10 @@ FilterTag.propTypes = {
newFilterLabel: PropTypes.string,
device: PropTypes.string,
isMobile: PropTypes.bool,
testIds: PropTypes.shape({
testIds: PropTypes.shape({
moreOptionsButton: PropTypes.string,
submitFiltersButton: PropTypes.string
})

submitFiltersButton: PropTypes.string,
}),
}

export default withDevice(FilterTag)
8 changes: 4 additions & 4 deletions react/components/FilterBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ FilterBar.defaultProps = {
submitFilterLabel: 'Apply',
newFilterLabel: 'New Filter',
statements: [],
testIds: {}
testIds: {},
}

export const filterBarPropTypes = {
Expand All @@ -220,10 +220,10 @@ export const filterBarPropTypes = {
submitFilterLabel: PropTypes.string,
/** New Filter title label for inside the 'More options' menu */
newFilterLabel: PropTypes.string,
testIds: PropTypes.shape({
testIds: PropTypes.shape({
moreOptionsButton: PropTypes.string,
submitFiltersButton: PropTypes.string
})
submitFiltersButton: PropTypes.string,
}),
}

FilterBar.propTypes = filterBarPropTypes
Expand Down
7 changes: 5 additions & 2 deletions scripts/entrypoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ const componentsFolder = path.join(__dirname, '../react/components')
const iconsFolder = path.join(__dirname, '../react/components/icon')
const entrypointsFolder = path.join(__dirname, '../react')

const isComponentFolder = (s) => s.charAt(0).toUpperCase() === s.charAt(0) && path.extname(s) === ''
const isComponentFolder = s =>
s.charAt(0).toUpperCase() === s.charAt(0) && path.extname(s) === ''

const entrypointTemplate = (e, isIcon) => `import ${e} from './components/${isIcon ? `icon/${e}` : e}/index'
const entrypointTemplate = (e, isIcon) => `import ${e} from './components/${
isIcon ? `icon/${e}` : e
}/index'
export default ${e}
`
Expand Down
4 changes: 3 additions & 1 deletion scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ const manifest = JSON.parse(fs.readFileSync(manifestJsonPath).toString())

// fs.writeFileSync(manifestJsonPath, JSON.stringify(manifest, null, 2))

console.log(`Updating manifest version from ${pkg.version} to ${manifest.version}`)
console.log(
`Updating manifest version from ${pkg.version} to ${manifest.version}`
)

0 comments on commit 20955cf

Please sign in to comment.