mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #3942 from overleaf/prettier-trailing-comma
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
This commit is contained in:
@@ -30,7 +30,7 @@ function AccessibleModal({ show, ...otherProps }) {
|
||||
}
|
||||
|
||||
AccessibleModal.propTypes = {
|
||||
show: PropTypes.bool
|
||||
show: PropTypes.bool,
|
||||
}
|
||||
|
||||
export default AccessibleModal
|
||||
|
||||
@@ -24,6 +24,6 @@ export default function BetaBadge({ tooltip }) {
|
||||
BetaBadge.propTypes = {
|
||||
tooltip: PropTypes.exact({
|
||||
id: PropTypes.string.isRequired,
|
||||
text: PropTypes.string.isRequired
|
||||
})
|
||||
text: PropTypes.string.isRequired,
|
||||
}),
|
||||
}
|
||||
|
||||
@@ -45,5 +45,5 @@ export default function CopyLink({ link, tooltipId }) {
|
||||
}
|
||||
CopyLink.propTypes = {
|
||||
link: PropTypes.string.isRequired,
|
||||
tooltipId: PropTypes.string.isRequired
|
||||
tooltipId: PropTypes.string.isRequired,
|
||||
}
|
||||
|
||||
@@ -8,14 +8,14 @@ function Icon({
|
||||
modifier,
|
||||
classes = {},
|
||||
accessibilityLabel,
|
||||
children
|
||||
children,
|
||||
}) {
|
||||
const iconClassName = classNames(
|
||||
'fa',
|
||||
`fa-${type}`,
|
||||
{
|
||||
'fa-spin': spin,
|
||||
[`fa-${modifier}`]: modifier
|
||||
[`fa-${modifier}`]: modifier,
|
||||
},
|
||||
classes.icon
|
||||
)
|
||||
@@ -37,13 +37,13 @@ Icon.propTypes = {
|
||||
spin: PropTypes.bool,
|
||||
modifier: PropTypes.string,
|
||||
classes: PropTypes.exact({
|
||||
icon: PropTypes.string
|
||||
icon: PropTypes.string,
|
||||
}),
|
||||
accessibilityLabel: PropTypes.string,
|
||||
children: PropTypes.oneOfType([
|
||||
PropTypes.arrayOf(PropTypes.node),
|
||||
PropTypes.node
|
||||
])
|
||||
PropTypes.node,
|
||||
]),
|
||||
}
|
||||
|
||||
export default Icon
|
||||
|
||||
@@ -18,8 +18,8 @@ TooltipButton.propTypes = {
|
||||
onClick: PropTypes.func,
|
||||
children: PropTypes.oneOfType([
|
||||
PropTypes.arrayOf(PropTypes.node),
|
||||
PropTypes.node
|
||||
])
|
||||
PropTypes.node,
|
||||
]),
|
||||
}
|
||||
|
||||
export default TooltipButton
|
||||
|
||||
Reference in New Issue
Block a user