mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
0cd69e8a02
Summary: CI is currently failing because of a lint issue, this fixes it and a bunch of other warnings that are auto-fixable. **Test plan** Quick manual test, cosmetic changes only. Closes https://github.com/facebook/react-native/pull/16229 Differential Revision: D6009748 Pulled By: TheSavior fbshipit-source-id: cabd44fed99dd90bd0b35626492719c139c89f34
35 lines
748 B
JavaScript
35 lines
748 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule ExcerptLink
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var React = require('React');
|
|
|
|
class ExcerptLink extends React.Component {
|
|
render() {
|
|
var cta = 'Read more';
|
|
|
|
if (this.props.category === 'videos') {
|
|
cta = 'Watch video';
|
|
}
|
|
|
|
return (
|
|
<footer className="entry-readmore">
|
|
<a href={this.props.href} className="btn">
|
|
{cta}
|
|
</a>
|
|
</footer>
|
|
);
|
|
}
|
|
}
|
|
|
|
module.exports = ExcerptLink;
|