Skip to content

Commit

Permalink
chore(BranchName): Move BranchName component from team to staff flag (#…
Browse files Browse the repository at this point in the history
…5287)

* Move BranchName to staff feature flag

* Create odd-seas-study.md
  • Loading branch information
jonrohan authored Nov 14, 2024
1 parent 9d004d0 commit 41ae5aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-seas-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move BranchName component from team to staff flag
2 changes: 1 addition & 1 deletion packages/react/src/BranchName/BranchName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type BranchNameProps<As extends React.ElementType> = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function BranchName<As extends React.ElementType>(props: BranchNameProps<As>, ref: ForwardedRef<any>) {
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) {
Expand Down

0 comments on commit 41ae5aa

Please sign in to comment.