Skip to content

Commit

Permalink
feat: modifies file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Jan 14, 2021
1 parent f323425 commit 8b0bec7
Show file tree
Hide file tree
Showing 17 changed files with 1,645 additions and 21 deletions.
1 change: 1 addition & 0 deletions frontend/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ generates:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
- "typescript-resolvers"
config:
maybeValue: T | undefined
withHooks: true
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, ChakraProvider, theme, VStack } from "@chakra-ui/react";
import Navbar from "components/navbar";
import Navbar from "components/Navbar";
import React, { FC } from "react";

const Layout: FC = ({ children }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Stack,
Textarea,
} from "@chakra-ui/react";
import AccessDeniedIndicator from "components/access-denied-indicator";
import AccessDeniedIndicator from "components/AccessDeniedIndicator";
import { useInsertFeedMutation } from "generated-graphql";
import { useSession } from "next-auth/client";
import React, { ChangeEvent, useState } from "react";
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/pages/feeds/feed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Avatar, Box, Stack, Text } from "@chakra-ui/react";
import timeFromNow from "lib/time-from-now";
import timeFromNow from "lib/timeFromNow";
import React, { FC } from "react";
import IFeed from "types/feed";

Expand Down
10 changes: 5 additions & 5 deletions frontend/components/pages/feeds/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Box, Stack } from "@chakra-ui/react";
import Loader from "components/loader";
import AddNewFeedForm from "components/pages/feeds/add-new-feed-form";
import Feed from "components/pages/feeds/feed";
import Loader from "components/Loader";
import AddNewFeedForm from "components/Pages/Feeds/AddNewFeedForm";
import Feed from "components/Pages/Feeds/Feed";
import { useFetchFeedsSubscription } from "generated-graphql";
import React from "react";
import IFeed from "types/feed";

const FeedsPageComponent = () => {
const { data, loading } = useFetchFeedsSubscription();
const { data } = useFetchFeedsSubscription();

if (loading) {
if (!data) {
return <Loader />;
}

Expand Down
Loading

0 comments on commit 8b0bec7

Please sign in to comment.