зеркало из https://github.com/mozilla/fxa.git
feat(components): move LinkExternal to shared component, import into admin
This commit is contained in:
Родитель
8bd85f44ca
Коммит
0c52d2717b
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import React from 'react';
|
||||
import LinkExternal from '../LinkExternal';
|
||||
import LinkExternal from '../../../../fxa-components/LinkExternal';
|
||||
import './index.scss';
|
||||
|
||||
export const Footer = () => (
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import React from 'react';
|
||||
import LinkExternal from '../LinkExternal';
|
||||
import LinkExternal from '../../../../fxa-components/LinkExternal';
|
||||
import './index.scss';
|
||||
|
||||
export const LinkAbout = () => (
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import React from 'react';
|
||||
import React from "react";
|
||||
|
||||
type LinkExternalProps = {
|
||||
className?: string;
|
||||
|
@ -13,7 +13,7 @@ type LinkExternalProps = {
|
|||
export const LinkExternal = ({
|
||||
className,
|
||||
href,
|
||||
children,
|
||||
children
|
||||
}: LinkExternalProps) => (
|
||||
<a target="_blank" rel="noopener noreferrer" {...{ className }} {...{ href }}>
|
||||
{children}
|
Загрузка…
Ссылка в новой задаче