From 41ae5aa7b38707072310354d89721b677bfa4d23 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Thu, 14 Nov 2024 09:44:15 -0800 Subject: [PATCH] chore(BranchName): Move BranchName component from team to staff flag (#5287) * Move BranchName to staff feature flag * Create odd-seas-study.md --- .changeset/odd-seas-study.md | 5 +++++ packages/react/src/BranchName/BranchName.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/odd-seas-study.md diff --git a/.changeset/odd-seas-study.md b/.changeset/odd-seas-study.md new file mode 100644 index 00000000000..8a41ad5635e --- /dev/null +++ b/.changeset/odd-seas-study.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Move BranchName component from team to staff flag diff --git a/packages/react/src/BranchName/BranchName.tsx b/packages/react/src/BranchName/BranchName.tsx index 4b6d7697c9f..d2d4556b577 100644 --- a/packages/react/src/BranchName/BranchName.tsx +++ b/packages/react/src/BranchName/BranchName.tsx @@ -31,7 +31,7 @@ type BranchNameProps = { // eslint-disable-next-line @typescript-eslint/no-explicit-any function BranchName(props: BranchNameProps, ref: ForwardedRef) { const {as: BaseComponent = 'a', className, children, sx, ...rest} = props - const enabled = useFeatureFlag('primer_react_css_modules_team') + const enabled = useFeatureFlag('primer_react_css_modules_staff') if (enabled) { if (sx) {