Skip to content

Commit

Permalink
Finally fix formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richardguerre committed Sep 1, 2024
1 parent db4067f commit 77116b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions apps/mobile-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@
"vite": "^5.2.10",
"vite-plugin-pwa": "^0.20.0",
"workbox-core": "^7.1.0"
},
"relay": {
"artifactDirectory": "src/relay/__gen__"
}
}
2 changes: 1 addition & 1 deletion apps/mobile-pwa/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ initUnocssRuntime({
defaults: unocssConfig,
});

const IndexView = React.lazy(() => import("./views/IndexView2"));
const IndexView = React.lazy(() => import("./views/IndexView"));
const LoginView = React.lazy(() => import("./views/LoginView"));
const TestView = React.lazy(() => import("./views/TestView"));
const NotFoundView = React.lazy(() => import("./views/NotFoundView"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { dayjs } from "../dayjs";
import { useEffect, useRef, useState } from "react";
import { Day } from "../components/Day";
import { IndexViewQuery } from "../relay/__gen__/IndexViewQuery.graphql";
import { IndexViewQuery } from "@flowdev/mobile-pwa/relay/__gen__/IndexViewQuery.graphql";
import { BsCalendar, BsClock, BsPlusLg } from "@flowdev/icons";
import { Drawer, DrawerContent, DrawerTrigger } from "@flowdev/ui/Drawer";
import {
Expand All @@ -23,7 +23,7 @@ import "./IndexView.scss";
import { Button } from "@flowdev/ui/Button";
import { Controller, useForm } from "react-hook-form";
import { durationOptions } from "../components/TaskCard";
import { IndexViewCreateTaskMutation } from "../relay/__gen__/IndexViewCreateTaskMutation.graphql";
import { IndexViewCreateTaskMutation } from "@flowdev/mobile-pwa/relay/__gen__/IndexViewCreateTaskMutation.graphql";
import { TaskTagsExtension, useTaskTags } from "../components/TaskTags";

export const START_HOUR = 4;
Expand All @@ -33,7 +33,7 @@ export const getStartOfToday = () => {
};

const indexViewQuery = graphql`
query IndexView2Query($afterDay: ID!) {
query IndexViewQuery($afterDay: ID!) {
days(after: $afterDay, first: 1) {
edges {
node {
Expand Down Expand Up @@ -121,11 +121,10 @@ const CreateTaskDrawer = (props: {
date: dayjs().format("YYYY-MM-DD"),
durationInMinutes: null,
};
const { handleSubmit, control, reset } = useForm<FormValues>({defaultValues
});
const { handleSubmit, control, reset } = useForm<FormValues>({ defaultValues });

const [$createTask, creatingTask] = useMutation<IndexViewCreateTaskMutation>(graphql`
mutation IndexView2CreateTaskMutation($input: MutationCreateTaskInput!) {
mutation IndexViewCreateTaskMutation($input: MutationCreateTaskInput!) {
createTask(input: $input) {
id
title
Expand Down Expand Up @@ -162,7 +161,7 @@ const CreateTaskDrawer = (props: {
const handleClose = (open: boolean) => {
if (!open) reset();
setOpenDrawer(open);
}
};

return (
<Drawer open={openDrawer} onOpenChange={handleClose}>
Expand Down
2 changes: 1 addition & 1 deletion relay.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"mobile-pwa": {
"schema": "packages/relay/schema.graphql",
"output": "apps/mobile-pwa/src/relay/__generated__",
"output": "apps/mobile-pwa/src/relay/__gen__",
"language": "typescript",
"eagerEsModules": true,
"noFutureProofEnums": true,
Expand Down

0 comments on commit 77116b8

Please sign in to comment.