-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: list all studios from user applications list (#62)
- Loading branch information
Showing
4 changed files
with
59 additions
and
53 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import {useClient} from 'sanity' | ||
|
||
export function useVersionedClient() { | ||
return useClient({apiVersion: '2024-06-03'}) | ||
return useClient({apiVersion: '2024-08-01'}) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {type DashboardWidget} from '../../types' | ||
|
||
export interface ProjectInfoProps { | ||
__experimental_before?: DashboardWidget[] | ||
data: ProjectData[] | ||
} | ||
|
||
export interface App { | ||
title: string | ||
rows?: App[] | ||
value?: string | {error: string} | ||
} | ||
|
||
export interface ProjectData { | ||
title: string | ||
category?: string | ||
} | ||
|
||
export interface UserApplication { | ||
id: string | ||
projectId: string | ||
title: string | null | ||
type: string | ||
urlType: 'internal' | 'external' | ||
appHost: string | ||
|
||
// … there are other props here, but we don't really care about them for our use case | ||
} |