-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sanity): move bundle metadata store to resource cache
Co-authored-by: Pedro Bonamin <[email protected]>
- Loading branch information
1 parent
649a0ec
commit 6236a7d
Showing
19 changed files
with
333 additions
and
246 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
packages/sanity/src/_singletons/core/bundles/BundlesContext.ts
This file was deleted.
Oops, something went wrong.
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
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
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
12 changes: 1 addition & 11 deletions
12
packages/sanity/src/core/releases/plugin/ReleasesStudioLayout.tsx
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 |
---|---|---|
@@ -1,18 +1,8 @@ | ||
import {type LayoutProps} from '../../config' | ||
import {BundlesProvider} from '../../store/bundles/BundlesProvider' | ||
import {AddonDatasetProvider} from '../../studio' | ||
|
||
export function ReleasesStudioLayout(props: LayoutProps) { | ||
// TODO: Replace for useReleasesEnabled | ||
const {enabled, mode} = {enabled: true, mode: 'default'} | ||
|
||
if (!enabled) { | ||
return props.renderDefault(props) | ||
} | ||
|
||
return ( | ||
<AddonDatasetProvider> | ||
<BundlesProvider>{props.renderDefault(props)}</BundlesProvider> | ||
</AddonDatasetProvider> | ||
) | ||
return props.renderDefault(props) | ||
} |
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
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
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
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
47 changes: 0 additions & 47 deletions
47
packages/sanity/src/core/store/bundles/BundlesProvider.tsx
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.