-
Notifications
You must be signed in to change notification settings - Fork 47.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Facebook-internal build link to Workplace group
- Loading branch information
Brian Vaughn
committed
Apr 15, 2021
1 parent
b9b6de4
commit d61818f
Showing
8 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/react-devtools-shared/src/devtools/views/ErrorBoundary/WorkplaceGroup.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its 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/constants'; | ||
import Icon from '../Icon'; | ||
import styles from './shared.css'; | ||
|
||
export default function WorkplaceGroup() { | ||
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" | ||
title="Report bug"> | ||
Report this on Workplace | ||
</a> | ||
<div className={styles.FacebookOnly}>(Facebook employees only.)</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters