Upgrade Prettier in Xplat to version 1.19.1: format files
Summary: Part two of D20879147 where we update the versions of Prettier used in Xplat. I will stack land the diffs. Here, we format all the files, and use the drop conflicts flag. After this lands, I will go and format the files which had conflicts again. Changelog: [Internal] drop-conflicts bypass-lint allow-large-files Reviewed By: gkz Differential Revision: D20929844 fbshipit-source-id: 2c1df8966a48b5db4f890e2cc494cb1c69422b7d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8c53c2dcca
commit
f7bc0ad248
@@ -52,9 +52,7 @@ export default class URLShortener extends Component<{}, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://cors-anywhere.herokuapp.com/tinyurl.com/api-create.php?url=${
|
`https://cors-anywhere.herokuapp.com/tinyurl.com/api-create.php?url=${window.location.href}`,
|
||||||
window.location.href
|
|
||||||
}`,
|
|
||||||
)
|
)
|
||||||
.then(res => res.text())
|
.then(res => res.text())
|
||||||
.then(shortURL => this.setState({shortURL, loading: false}))
|
.then(shortURL => this.setState({shortURL, loading: false}))
|
||||||
|
@@ -49,8 +49,7 @@ export default ({data}) => (
|
|||||||
({node}) =>
|
({node}) =>
|
||||||
node.fileAbsolutePath.indexOf(`/${category}/`) > -1,
|
node.fileAbsolutePath.indexOf(`/${category}/`) > -1,
|
||||||
)
|
)
|
||||||
.map(
|
.map(({node}) =>
|
||||||
({node}) =>
|
|
||||||
node.frontmatter.redirect ? (
|
node.frontmatter.redirect ? (
|
||||||
<a key={node.id} href={node.frontmatter.path}>
|
<a key={node.id} href={node.frontmatter.path}>
|
||||||
{node.frontmatter.title}
|
{node.frontmatter.title}
|
||||||
|
Reference in New Issue
Block a user