diff --git a/src/Components/Inputs/FilesInputs/ScreenshotsInput/ScreenshotsInput.tsx b/src/Components/Inputs/FilesInputs/ScreenshotsInput/ScreenshotsInput.tsx
index d4481e7..c1b8aa2 100644
--- a/src/Components/Inputs/FilesInputs/ScreenshotsInput/ScreenshotsInput.tsx
+++ b/src/Components/Inputs/FilesInputs/ScreenshotsInput/ScreenshotsInput.tsx
@@ -24,9 +24,13 @@ const mockSenderEnhancer = getMockSenderEnhancer({
const MAX_UPLOAD_COUNT = 4 as const;
+interface Image extends ImageInput {
+ local_id?: string
+}
+
interface Props {
- value: ImageInput[],
- onChange: (new_value: ImageInput[]) => void
+ value: Image[],
+ onChange: (new_value: Image[]) => void
}
@@ -56,11 +60,9 @@ export default function ScreenshotsInput(props: Props) {
[UPLOADER_EVENTS.ITEM_FINISH]: (item) => {
const { id, filename, variants } = item?.uploadResponse?.data?.result;
-
const url = (variants as string[]).find(v => v.includes('public'));
-
if (id && url) {
- onChange([...uploadedFiles, { id, name: filename, url: url }].slice(-MAX_UPLOAD_COUNT))
+ onChange([...uploadedFiles, { id, local_id: id, name: filename, url: url }].slice(-MAX_UPLOAD_COUNT))
}
}
}}
@@ -69,7 +71,7 @@ export default function ScreenshotsInput(props: Props) {
{uploadedFiles.map((f, idx) =>
{
onChange(removeArrayItemAtIndex(uploadedFiles, idx))
diff --git a/src/features/Projects/pages/ListProjectPage/Components/FormContainer/FormContainer.tsx b/src/features/Projects/pages/ListProjectPage/Components/FormContainer/FormContainer.tsx
index 28db98e..2b05766 100644
--- a/src/features/Projects/pages/ListProjectPage/Components/FormContainer/FormContainer.tsx
+++ b/src/features/Projects/pages/ListProjectPage/Components/FormContainer/FormContainer.tsx
@@ -13,6 +13,7 @@ import { store } from "src/redux/store";
import UpdateProjectContextProvider from './updateProjectContext'
import { useNavigate } from 'react-router-dom'
import { createRoute } from 'src/utils/routing'
+import { nanoid } from "@reduxjs/toolkit";
interface Props {
@@ -160,10 +161,10 @@ export default function FormContainer(props: PropsWithChildren) {
slack: data.slack,
telegram: data.telegram,
github: data.github,
- lightning_address:data.lightning_address,
+ lightning_address: data.lightning_address,
category_id: data.category.id,
capabilities: data.capabilities.map(c => c.id),
- screenshots: data.screenshots.map(url => ({ url })),
+ screenshots: data.screenshots.map(url => ({ url, local_id: nanoid(5), })),
members: prepareMembers(data.members),
recruit_roles: data.recruit_roles.map(r => r.id),
diff --git a/src/features/Projects/pages/ListProjectPage/Components/ProjectDetailsTab/ProjectDetailsTab.tsx b/src/features/Projects/pages/ListProjectPage/Components/ProjectDetailsTab/ProjectDetailsTab.tsx
index 9e83163..5b01022 100644
--- a/src/features/Projects/pages/ListProjectPage/Components/ProjectDetailsTab/ProjectDetailsTab.tsx
+++ b/src/features/Projects/pages/ListProjectPage/Components/ProjectDetailsTab/ProjectDetailsTab.tsx
@@ -14,7 +14,9 @@ interface Props { }
export default function ProjectDetailsTab(props: Props) {
- const { register, formState: { errors, }, control, getValues } = useFormContext();
+ const { register, formState: { errors, dirtyFields }, control, getValues } = useFormContext();
+
+ const isUpdating = !!getValues('id');
return (
@@ -124,6 +126,9 @@ export default function ProjectDetailsTab(props: Props) {
{...register("hashtag")}
/>
+ {(isUpdating && dirtyFields.hashtag) &&
+ Warning: changing the hashtag of the project will break all the old links for the project.
+
}
{errors.hashtag &&
{errors.hashtag.message}
}
diff --git a/src/graphql/index.tsx b/src/graphql/index.tsx
index 4cb9902..3e1b397 100644
--- a/src/graphql/index.tsx
+++ b/src/graphql/index.tsx
@@ -1269,13 +1269,13 @@ export const OfficialTagsDocument = gql`
* });
*/
export function useOfficialTagsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(OfficialTagsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(OfficialTagsDocument, options);
+}
export function useOfficialTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(OfficialTagsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(OfficialTagsDocument, options);
+}
export type OfficialTagsQueryHookResult = ReturnType;
export type OfficialTagsLazyQueryHookResult = ReturnType;
export type OfficialTagsQueryResult = Apollo.QueryResult;
@@ -1307,13 +1307,13 @@ export const SearchUsersDocument = gql`
* });
*/
export function useSearchUsersQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(SearchUsersDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(SearchUsersDocument, options);
+}
export function useSearchUsersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(SearchUsersDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(SearchUsersDocument, options);
+}
export type SearchUsersQueryHookResult = ReturnType;
export type SearchUsersLazyQueryHookResult = ReturnType;
export type SearchUsersQueryResult = Apollo.QueryResult;
@@ -1344,13 +1344,13 @@ export const NavCategoriesDocument = gql`
* });
*/
export function useNavCategoriesQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(NavCategoriesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(NavCategoriesDocument, options);
+}
export function useNavCategoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(NavCategoriesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(NavCategoriesDocument, options);
+}
export type NavCategoriesQueryHookResult = ReturnType;
export type NavCategoriesLazyQueryHookResult = ReturnType;
export type NavCategoriesQueryResult = Apollo.QueryResult;
@@ -1385,13 +1385,13 @@ export const SearchProjectsDocument = gql`
* });
*/
export function useSearchProjectsQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(SearchProjectsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(SearchProjectsDocument, options);
+}
export function useSearchProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(SearchProjectsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(SearchProjectsDocument, options);
+}
export type SearchProjectsQueryHookResult = ReturnType;
export type SearchProjectsLazyQueryHookResult = ReturnType;
export type SearchProjectsQueryResult = Apollo.QueryResult;
@@ -1424,13 +1424,13 @@ export const MeDocument = gql`
* });
*/
export function useMeQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(MeDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(MeDocument, options);
+}
export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(MeDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(MeDocument, options);
+}
export type MeQueryHookResult = ReturnType;
export type MeLazyQueryHookResult = ReturnType;
export type MeQueryResult = Apollo.QueryResult;
@@ -1461,13 +1461,13 @@ export const DonationsStatsDocument = gql`
* });
*/
export function useDonationsStatsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(DonationsStatsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(DonationsStatsDocument, options);
+}
export function useDonationsStatsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(DonationsStatsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(DonationsStatsDocument, options);
+}
export type DonationsStatsQueryHookResult = ReturnType;
export type DonationsStatsLazyQueryHookResult = ReturnType;
export type DonationsStatsQueryResult = Apollo.QueryResult;
@@ -1501,9 +1501,9 @@ export type DonateMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(DonateDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(DonateDocument, options);
+}
export type DonateMutationHookResult = ReturnType;
export type DonateMutationResult = Apollo.MutationResult;
export type DonateMutationOptions = Apollo.BaseMutationOptions;
@@ -1537,9 +1537,9 @@ export type ConfirmDonationMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(ConfirmDonationDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(ConfirmDonationDocument, options);
+}
export type ConfirmDonationMutationHookResult = ReturnType;
export type ConfirmDonationMutationResult = Apollo.MutationResult;
export type ConfirmDonationMutationOptions = Apollo.BaseMutationOptions;
@@ -1581,13 +1581,13 @@ export const GetHackathonsDocument = gql`
* });
*/
export function useGetHackathonsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(GetHackathonsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(GetHackathonsDocument, options);
+}
export function useGetHackathonsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(GetHackathonsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(GetHackathonsDocument, options);
+}
export type GetHackathonsQueryHookResult = ReturnType;
export type GetHackathonsLazyQueryHookResult = ReturnType;
export type GetHackathonsQueryResult = Apollo.QueryResult;
@@ -1638,13 +1638,13 @@ export const TrendingPostsDocument = gql`
* });
*/
export function useTrendingPostsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(TrendingPostsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(TrendingPostsDocument, options);
+}
export function useTrendingPostsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(TrendingPostsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(TrendingPostsDocument, options);
+}
export type TrendingPostsQueryHookResult = ReturnType;
export type TrendingPostsLazyQueryHookResult = ReturnType;
export type TrendingPostsQueryResult = Apollo.QueryResult;
@@ -1687,13 +1687,13 @@ export const GetMyDraftsDocument = gql`
* });
*/
export function useGetMyDraftsQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(GetMyDraftsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(GetMyDraftsDocument, options);
+}
export function useGetMyDraftsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(GetMyDraftsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(GetMyDraftsDocument, options);
+}
export type GetMyDraftsQueryHookResult = ReturnType;
export type GetMyDraftsLazyQueryHookResult = ReturnType;
export type GetMyDraftsQueryResult = Apollo.QueryResult;
@@ -1735,9 +1735,9 @@ export type CreateStoryMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(CreateStoryDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(CreateStoryDocument, options);
+}
export type CreateStoryMutationHookResult = ReturnType;
export type CreateStoryMutationResult = Apollo.MutationResult;
export type CreateStoryMutationOptions = Apollo.BaseMutationOptions;
@@ -1768,9 +1768,9 @@ export type DeleteStoryMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(DeleteStoryDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(DeleteStoryDocument, options);
+}
export type DeleteStoryMutationHookResult = ReturnType;
export type DeleteStoryMutationResult = Apollo.MutationResult;
export type DeleteStoryMutationOptions = Apollo.BaseMutationOptions;
@@ -1800,13 +1800,13 @@ export const PopularTagsDocument = gql`
* });
*/
export function usePopularTagsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(PopularTagsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(PopularTagsDocument, options);
+}
export function usePopularTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(PopularTagsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(PopularTagsDocument, options);
+}
export type PopularTagsQueryHookResult = ReturnType;
export type PopularTagsLazyQueryHookResult = ReturnType;
export type PopularTagsQueryResult = Apollo.QueryResult;
@@ -1897,13 +1897,13 @@ export const FeedDocument = gql`
* });
*/
export function useFeedQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(FeedDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(FeedDocument, options);
+}
export function useFeedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(FeedDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(FeedDocument, options);
+}
export type FeedQueryHookResult = ReturnType;
export type FeedLazyQueryHookResult = ReturnType;
export type FeedQueryResult = Apollo.QueryResult;
@@ -2002,13 +2002,13 @@ export const PostDetailsDocument = gql`
* });
*/
export function usePostDetailsQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(PostDetailsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(PostDetailsDocument, options);
+}
export function usePostDetailsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(PostDetailsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(PostDetailsDocument, options);
+}
export type PostDetailsQueryHookResult = ReturnType;
export type PostDetailsLazyQueryHookResult = ReturnType;
export type PostDetailsQueryResult = Apollo.QueryResult;
@@ -2037,13 +2037,13 @@ export const MyProfileAboutDocument = gql`
* });
*/
export function useMyProfileAboutQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(MyProfileAboutDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(MyProfileAboutDocument, options);
+}
export function useMyProfileAboutLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(MyProfileAboutDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(MyProfileAboutDocument, options);
+}
export type MyProfileAboutQueryHookResult = ReturnType;
export type MyProfileAboutLazyQueryHookResult = ReturnType;
export type MyProfileAboutQueryResult = Apollo.QueryResult;
@@ -2075,9 +2075,9 @@ export type UpdateProfileAboutMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(UpdateProfileAboutDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(UpdateProfileAboutDocument, options);
+}
export type UpdateProfileAboutMutationHookResult = ReturnType;
export type UpdateProfileAboutMutationResult = Apollo.MutationResult;
export type UpdateProfileAboutMutationOptions = Apollo.BaseMutationOptions;
@@ -2112,13 +2112,13 @@ export const MyProfilePreferencesDocument = gql`
* });
*/
export function useMyProfilePreferencesQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(MyProfilePreferencesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(MyProfilePreferencesDocument, options);
+}
export function useMyProfilePreferencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(MyProfilePreferencesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(MyProfilePreferencesDocument, options);
+}
export type MyProfilePreferencesQueryHookResult = ReturnType;
export type MyProfilePreferencesLazyQueryHookResult = ReturnType;
export type MyProfilePreferencesQueryResult = Apollo.QueryResult;
@@ -2155,9 +2155,9 @@ export type UpdateUserPreferencesMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(UpdateUserPreferencesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(UpdateUserPreferencesDocument, options);
+}
export type UpdateUserPreferencesMutationHookResult = ReturnType;
export type UpdateUserPreferencesMutationResult = Apollo.MutationResult;
export type UpdateUserPreferencesMutationOptions = Apollo.BaseMutationOptions;
@@ -2195,13 +2195,13 @@ export const MyProfileRolesSkillsDocument = gql`
* });
*/
export function useMyProfileRolesSkillsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(MyProfileRolesSkillsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(MyProfileRolesSkillsDocument, options);
+}
export function useMyProfileRolesSkillsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(MyProfileRolesSkillsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(MyProfileRolesSkillsDocument, options);
+}
export type MyProfileRolesSkillsQueryHookResult = ReturnType;
export type MyProfileRolesSkillsLazyQueryHookResult = ReturnType;
export type MyProfileRolesSkillsQueryResult = Apollo.QueryResult;
@@ -2242,9 +2242,9 @@ export type UpdateUserRolesSkillsMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(UpdateUserRolesSkillsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(UpdateUserRolesSkillsDocument, options);
+}
export type UpdateUserRolesSkillsMutationHookResult = ReturnType;
export type UpdateUserRolesSkillsMutationResult = Apollo.MutationResult;
export type UpdateUserRolesSkillsMutationOptions = Apollo.BaseMutationOptions;
@@ -2298,13 +2298,13 @@ ${UserRolesSkillsFragmentDoc}`;
* });
*/
export function useProfileQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(ProfileDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(ProfileDocument, options);
+}
export function useProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(ProfileDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(ProfileDocument, options);
+}
export type ProfileQueryHookResult = ReturnType;
export type ProfileLazyQueryHookResult = ReturnType;
export type ProfileQueryResult = Apollo.QueryResult;
@@ -2346,13 +2346,13 @@ export const CategoryPageDocument = gql`
* });
*/
export function useCategoryPageQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(CategoryPageDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(CategoryPageDocument, options);
+}
export function useCategoryPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(CategoryPageDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(CategoryPageDocument, options);
+}
export type CategoryPageQueryHookResult = ReturnType;
export type CategoryPageLazyQueryHookResult = ReturnType;
export type CategoryPageQueryResult = Apollo.QueryResult;
@@ -2382,13 +2382,13 @@ export const AllCategoriesDocument = gql`
* });
*/
export function useAllCategoriesQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(AllCategoriesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(AllCategoriesDocument, options);
+}
export function useAllCategoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(AllCategoriesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(AllCategoriesDocument, options);
+}
export type AllCategoriesQueryHookResult = ReturnType;
export type AllCategoriesLazyQueryHookResult = ReturnType;
export type AllCategoriesQueryResult = Apollo.QueryResult;
@@ -2447,13 +2447,13 @@ export const ExploreProjectsDocument = gql`
* });
*/
export function useExploreProjectsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(ExploreProjectsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(ExploreProjectsDocument, options);
+}
export function useExploreProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(ExploreProjectsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(ExploreProjectsDocument, options);
+}
export type ExploreProjectsQueryHookResult = ReturnType;
export type ExploreProjectsLazyQueryHookResult = ReturnType;
export type ExploreProjectsQueryResult = Apollo.QueryResult;
@@ -2488,13 +2488,13 @@ export const HottestProjectsDocument = gql`
* });
*/
export function useHottestProjectsQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(HottestProjectsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(HottestProjectsDocument, options);
+}
export function useHottestProjectsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(HottestProjectsDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(HottestProjectsDocument, options);
+}
export type HottestProjectsQueryHookResult = ReturnType;
export type HottestProjectsLazyQueryHookResult = ReturnType;
export type HottestProjectsQueryResult = Apollo.QueryResult;
@@ -2524,13 +2524,13 @@ export const GetAllCapabilitiesDocument = gql`
* });
*/
export function useGetAllCapabilitiesQuery(baseOptions?: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(GetAllCapabilitiesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(GetAllCapabilitiesDocument, options);
+}
export function useGetAllCapabilitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(GetAllCapabilitiesDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery(GetAllCapabilitiesDocument, options);
+}
export type GetAllCapabilitiesQueryHookResult = ReturnType;
export type GetAllCapabilitiesLazyQueryHookResult = ReturnType;
export type GetAllCapabilitiesQueryResult = Apollo.QueryResult;
@@ -2563,9 +2563,9 @@ export type CreateProjectMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(CreateProjectDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(CreateProjectDocument, options);
+}
export type CreateProjectMutationHookResult = ReturnType;
export type CreateProjectMutationResult = Apollo.MutationResult;
export type CreateProjectMutationOptions = Apollo.BaseMutationOptions;
@@ -2598,9 +2598,9 @@ export type UpdateProjectMutationFn = Apollo.MutationFunction) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation(UpdateProjectDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useMutation(UpdateProjectDocument, options);
+}
export type UpdateProjectMutationHookResult = ReturnType;
export type UpdateProjectMutationResult = Apollo.MutationResult;
export type UpdateProjectMutationOptions = Apollo.BaseMutationOptions;
@@ -2628,13 +2628,13 @@ export const IsValidProjectHashtagDocument = gql`
* });
*/
export function useIsValidProjectHashtagQuery(baseOptions: Apollo.QueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery(IsValidProjectHashtagDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useQuery(IsValidProjectHashtagDocument, options);
+}
export function useIsValidProjectHashtagLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery(IsValidProjectHashtagDocument, options);
- }
+ const options = { ...defaultOptions, ...baseOptions }
+ return Apollo.useLazyQuery