Replace lodash with built-ins where possible to reduce bundle size (#1766)
* add tslint rule to disallow lodash.isUndefined * add tslint rule to disallow lodash.isNull * apply fixes
This commit is contained in:
@@ -40,7 +40,7 @@ export const AboutPageLayout = (props: Props) => (
|
||||
<AnimatedLink
|
||||
to={props.to}
|
||||
href={props.href}
|
||||
target={!_.isUndefined(props.href) ? '_blank' : undefined}
|
||||
target={props.href !== undefined ? '_blank' : undefined}
|
||||
isWithArrow={true}
|
||||
isAccentColor={true}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user