Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import {
ElementTypeOtherOrUnknown,
ElementTypeProfiler,
ElementTypeSuspense,
ElementTypeActivity,
ElementTypeViewTransition,
} from 'react-devtools-shared/src/frontend/types';
import {getDefaultOpenInEditorURL} from 'react-devtools-shared/src/utils';

Expand All @@ -56,6 +58,7 @@ import type {
RegExpComponentFilter,
EnvironmentNameComponentFilter,
} from 'react-devtools-shared/src/frontend/types';
import {isInternalFacebookBuild} from 'react-devtools-feature-flags';

const vscodeFilepath = 'vscode://file/{path}:{line}';

Expand Down Expand Up @@ -472,8 +475,9 @@ export default function ComponentsSettings({
((parseInt(currentTarget.value, 10): any): ElementType),
)
}>
{/* TODO: currently only experimental, only list this if it's available */}
{/*<option value={ElementTypeActivity}>activity</option>*/}
{isInternalFacebookBuild && (
<option value={ElementTypeActivity}>activity</option>
)}
<option value={ElementTypeClass}>class</option>
<option value={ElementTypeContext}>context</option>
<option value={ElementTypeFunction}>function</option>
Expand All @@ -487,10 +491,11 @@ export default function ComponentsSettings({
<option value={ElementTypeOtherOrUnknown}>other</option>
<option value={ElementTypeProfiler}>profiler</option>
<option value={ElementTypeSuspense}>suspense</option>
{/* TODO: currently only experimental, only list this if it's available */}
{/*<option value={ElementTypeViewTransition}>*/}
{/* view transition*/}
{/*</option>*/}
{isInternalFacebookBuild && (
<option value={ElementTypeViewTransition}>
view transition
</option>
)}
</select>
)}
{(componentFilter.type === ComponentFilterLocation ||
Expand Down
Loading