mirror of
https://github.com/xtr-dev/payload-feature-flags.git
synced 2025-12-10 10:53:24 +00:00
Replace redundant components with updated feature flag hooks and views. Add comprehensive documentation and ESLint config for improved development workflow.
This commit is contained in:
@@ -1 +1,10 @@
|
||||
export { BeforeDashboardClient } from '../components/BeforeDashboardClient.js'
|
||||
// Client-side hooks for React components
|
||||
export {
|
||||
useFeatureFlags,
|
||||
useFeatureFlag,
|
||||
useSpecificFeatureFlag,
|
||||
useVariantSelection,
|
||||
useRolloutCheck,
|
||||
withFeatureFlag,
|
||||
type FeatureFlag,
|
||||
} from '../hooks/client.js'
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
export { BeforeDashboardServer } from '../components/BeforeDashboardServer.js'
|
||||
|
||||
// Server-side hooks for React Server Components
|
||||
export {
|
||||
getFeatureFlag,
|
||||
|
||||
2
src/exports/views.ts
Normal file
2
src/exports/views.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// Custom admin views
|
||||
export { FeatureFlagsView } from '../views/FeatureFlagsView.js'
|
||||
Reference in New Issue
Block a user