Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename Post folder to Publication #221

Merged
merged 2 commits into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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