-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2953 from Hyperkid123/disable-pf4
use feature flag to remove PF4 styling support from chrome
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { useEffect } from 'react'; | ||
import { useFlag } from '@unleash/proxy-client-react'; | ||
import removePf4Styles from '../../utils/removePf4Styles'; | ||
|
||
const PF4Root = () => { | ||
const removePF4 = useFlag('platform.chrome.disable-pf4'); | ||
useEffect(() => { | ||
if (removePF4) { | ||
removePf4Styles(); | ||
} | ||
}, [removePF4]); | ||
return null; | ||
}; | ||
|
||
export default PF4Root; |
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