Skip to content

Commit dabe00a

Browse files
committed
refactor: rename
1 parent 15667a3 commit dabe00a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/slice-machine/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/hooks

packages/slice-machine/src/features/customTypes/customTypesBuilder/ImportSlicesFromLibraryModal/hooks/useGitIntegration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export function useGitIntegration() {
1616
const [isLoadingSlices, setIsLoadingSlices] = useState(false);
1717
const [importedSlices, setImportedSlices] = useState<SliceImport[]>([]);
1818

19-
const { data: integrationsData } = useSuspenseQuery({
19+
const { data: githubIntegrations } = useSuspenseQuery({
2020
queryKey: ["getIntegrations"],
2121
queryFn: () => managerClient.prismicRepository.fetchGitIntegrations(),
2222
});
23-
const { mutateAsync: fetchGitIntegrationToken } = useMutation({
23+
const { mutateAsync: fetchGitHubToken } = useMutation({
2424
mutationFn: (args: { integrationId: string }) => {
2525
return managerClient.prismicRepository.fetchGitIntegrationToken({
2626
integrationId: args.integrationId,
@@ -42,7 +42,7 @@ export function useGitIntegration() {
4242
resetImportedSlices();
4343
setIsLoadingSlices(true);
4444

45-
const { token } = await fetchGitIntegrationToken({
45+
const { token } = await fetchGitHubToken({
4646
integrationId: repository.integrationId,
4747
});
4848

@@ -109,7 +109,7 @@ export function useGitIntegration() {
109109
};
110110

111111
return {
112-
integrations: integrationsData.integrations ?? [],
112+
integrations: githubIntegrations.integrations ?? [],
113113
isLoadingSlices,
114114
importedSlices,
115115
resetImportedSlices,

0 commit comments

Comments
 (0)