mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-17 11:11:21 +08:00
Re-run updated Prettier
This commit is contained in:
@@ -45,7 +45,9 @@ const styles = StyleSheet.create({
|
||||
} as ViewStyle,
|
||||
})
|
||||
|
||||
export class NotificationCardHeader extends PureComponent<NotificationCardHeaderProps> {
|
||||
export class NotificationCardHeader extends PureComponent<
|
||||
NotificationCardHeaderProps
|
||||
> {
|
||||
render() {
|
||||
const {
|
||||
cardIconColor,
|
||||
|
||||
@@ -6,7 +6,10 @@ import { fixURL, GitHubURLOptions } from '../../../../utils/helpers/github/url'
|
||||
const baseURL = 'https://github.com'
|
||||
|
||||
export const getGitHubURLPressHandler = memoize(
|
||||
(url?: string, { commentId, issueOrPullRequestNumber }: GitHubURLOptions = {}) => {
|
||||
(
|
||||
url?: string,
|
||||
{ commentId, issueOrPullRequestNumber }: GitHubURLOptions = {},
|
||||
) => {
|
||||
const fixedURL = fixURL(url, { commentId, issueOrPullRequestNumber })
|
||||
return fixedURL ? () => Browser.openURL(fixedURL) : undefined
|
||||
},
|
||||
|
||||
@@ -14,7 +14,10 @@ export interface IntervalRefreshState {
|
||||
|
||||
const defaultInterval = 1000
|
||||
|
||||
export class IntervalRefresh extends PureComponent<IntervalRefreshProps, IntervalRefreshState> {
|
||||
export class IntervalRefresh extends PureComponent<
|
||||
IntervalRefreshProps,
|
||||
IntervalRefreshState
|
||||
> {
|
||||
static defaultProps = {
|
||||
interval: defaultInterval,
|
||||
}
|
||||
|
||||
@@ -85,14 +85,9 @@ function getProps(from: From, size: number) {
|
||||
}
|
||||
}
|
||||
|
||||
const GradientLayerOverlay: SFC<TransparentTextOverlayProps & { from: From }> = ({
|
||||
color,
|
||||
from,
|
||||
radius,
|
||||
size,
|
||||
style,
|
||||
...props
|
||||
}) => (
|
||||
const GradientLayerOverlay: SFC<
|
||||
TransparentTextOverlayProps & { from: From }
|
||||
> = ({ color, from, radius, size, style, ...props }) => (
|
||||
<LinearGradient
|
||||
colors={[rgba(color, 0), color]}
|
||||
style={[
|
||||
|
||||
Reference in New Issue
Block a user