Skip to content

Commit

Permalink
chore: rename Post folder to Publication (#221)
Browse files Browse the repository at this point in the history
* chore: rename folder

* chore: rename ViewPost to ViewPublication
  • Loading branch information
bigint committed Aug 3, 2022
1 parent 8f99ca2 commit 9fb838b
Show file tree
Hide file tree
Showing 41 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/Comment/Feed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, useQuery } from '@apollo/client'
import SinglePublication from '@components/Post/SinglePublication'
import SinglePublication from '@components/Publication/SinglePublication'
import PostsShimmer from '@components/Shared/Shimmer/PostsShimmer'
import { Card } from '@components/UI/Card'
import { EmptyState } from '@components/UI/EmptyState'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Community/Create.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LensHubProxy } from '@abis/LensHubProxy'
import { useMutation } from '@apollo/client'
import { GridItemEight, GridItemFour, GridLayout } from '@components/GridLayout'
import { CREATE_POST_TYPED_DATA_MUTATION } from '@components/Post/NewPost'
import { CREATE_POST_TYPED_DATA_MUTATION } from '@components/Publication/NewPost'
import ChooseFile from '@components/Shared/ChooseFile'
import Pending from '@components/Shared/Pending'
import SettingsHelper from '@components/Shared/SettingsHelper'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Community/Settings/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useMutation } from '@apollo/client'
import { HIDE_POST_MUTATION } from '@components/Post/Actions/Menu/Delete'
import { HIDE_POST_MUTATION } from '@components/Publication/Actions/Menu/Delete'
import { Button } from '@components/UI/Button'
import { WarningMessage } from '@components/UI/WarningMessage'
import { Community } from '@generated/lenstertypes'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Crowdfund/Create.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LensHubProxy } from '@abis/LensHubProxy'
import { gql, useMutation, useQuery } from '@apollo/client'
import { GridItemEight, GridItemFour, GridLayout } from '@components/GridLayout'
import { CREATE_POST_TYPED_DATA_MUTATION } from '@components/Post/NewPost'
import { CREATE_POST_TYPED_DATA_MUTATION } from '@components/Publication/NewPost'
import ChooseFile from '@components/Shared/ChooseFile'
import Pending from '@components/Shared/Pending'
import SettingsHelper from '@components/Shared/SettingsHelper'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Explore/Feed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, useQuery } from '@apollo/client'
import SinglePublication from '@components/Post/SinglePublication'
import SinglePublication from '@components/Publication/SinglePublication'
import PostsShimmer from '@components/Shared/Shimmer/PostsShimmer'
import { Card } from '@components/UI/Card'
import { EmptyState } from '@components/UI/EmptyState'
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Feed.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { gql, useQuery } from '@apollo/client'
import NewPost from '@components/Post/NewPost'
import SinglePublication from '@components/Post/SinglePublication'
import NewPost from '@components/Publication/NewPost'
import SinglePublication from '@components/Publication/SinglePublication'
import PostsShimmer from '@components/Shared/Shimmer/PostsShimmer'
import { Card } from '@components/UI/Card'
import { EmptyState } from '@components/UI/EmptyState'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Profile/Feed.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, useQuery } from '@apollo/client'
import SinglePublication from '@components/Post/SinglePublication'
import SinglePublication from '@components/Publication/SinglePublication'
import PostsShimmer from '@components/Shared/Shimmer/PostsShimmer'
import { Card } from '@components/UI/Card'
import { EmptyState } from '@components/UI/EmptyState'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LensHubProxy } from '@abis/LensHubProxy'
import { gql, useMutation, useQuery } from '@apollo/client'
import { PUBLICATION_REVENUE_QUERY } from '@components/Post/Crowdfund'
import { PUBLICATION_REVENUE_QUERY } from '@components/Publication/Crowdfund'
import { ALLOWANCE_SETTINGS_QUERY } from '@components/Settings/Allowance'
import AllowanceButton from '@components/Settings/Allowance/Button'
import Collectors from '@components/Shared/Collectors'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NewComment from '@components/Comment/NewComment'
import SinglePublication from '@components/Post/SinglePublication'
import SinglePublication from '@components/Publication/SinglePublication'
import { Card } from '@components/UI/Card'
import { Modal } from '@components/UI/Modal'
import { PencilAltIcon } from '@heroicons/react/outline'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const POST_QUERY = gql`
${MirrorFields}
`

const ViewPost: NextPage = () => {
const ViewPublication: NextPage = () => {
const {
query: { id }
} = useRouter()
Expand Down Expand Up @@ -146,4 +146,4 @@ const ViewPost: NextPage = () => {
)
}

export default ViewPost
export default ViewPublication
4 changes: 2 additions & 2 deletions src/components/Report/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { gql, useMutation, useQuery } from '@apollo/client'
import { GridItemEight, GridItemFour, GridLayout } from '@components/GridLayout'
import { POST_QUERY } from '@components/Post'
import SinglePublication from '@components/Post/SinglePublication'
import { POST_QUERY } from '@components/Publication'
import SinglePublication from '@components/Publication/SinglePublication'
import SettingsHelper from '@components/Shared/SettingsHelper'
import PostShimmer from '@components/Shared/Shimmer/PostShimmer'
import { Button } from '@components/UI/Button'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/Publications.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gql, useQuery } from '@apollo/client'
import SinglePublication from '@components/Post/SinglePublication'
import SinglePublication from '@components/Publication/SinglePublication'
import PostsShimmer from '@components/Shared/Shimmer/PostsShimmer'
import { Card } from '@components/UI/Card'
import { EmptyState } from '@components/UI/EmptyState'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Shared/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import MoreNavItems from './MoreNavItems'
import Search from './Search'

const StaffBar = dynamic(() => import('./StaffBar'))
const NewPostModal = dynamic(() => import('../../Post/NewPost/Modal'))
const NewPostModal = dynamic(() => import('../../Publication/NewPost/Modal'))

const PING_QUERY = gql`
query Ping {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/posts/[id]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ViewPost from '@components/Post'
import ViewPublication from '@components/Publication'

export default ViewPost
export default ViewPublication

1 comment on commit 9fb838b

@vercel
Copy link

@vercel vercel bot commented on 9fb838b Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.