/
ashipov
/
react
Обзор
Документация
Войти
/
ashipov
/
react
Код
Запросы
0
Задачи 2.0
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
packages/react-devtools-shared/src/devtools/views/ErrorBoundary/WorkplaceGroup.js
34 строки
979 B
Sebastian "Sebbie" Silbermann
[DevTools] Stop using native `title` for buttons/icons (#34379)
11 сен 2025, 19:49
Не верифицирован
11 сен 2025, 19:49
67415c8
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import * as React from 'react'; import {isInternalFacebookBuild} from 'react-devtools-feature-flags'; import {REACT_DEVTOOLS_WORKPLACE_URL} from 'react-devtools-shared/src/devtools/constants'; import Icon from '../Icon'; import styles from './shared.css'; export default function WorkplaceGroup(): React.Node { if (!isInternalFacebookBuild) { return null; } return ( <div className={styles.WorkplaceGroupRow}> <Icon className={styles.ReportIcon} type="facebook" /> <a className={styles.ReportLink} href={REACT_DEVTOOLS_WORKPLACE_URL} rel="noopener noreferrer" target="_blank"> Report this on Workplace </a> <div className={styles.FacebookOnly}>(Facebook employees only.)</div> </div> ); }