Skip to content

Commit

Permalink
[Refactor] Delete Conversation and Purchases apps
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi committed May 27, 2020
1 parent 92dd8ed commit 2899821
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 175 deletions.
28 changes: 0 additions & 28 deletions src/desktop/apps/conversations/client.tsx

This file was deleted.

54 changes: 0 additions & 54 deletions src/desktop/apps/conversations/server.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions src/desktop/apps/purchases/client.tsx

This file was deleted.

55 changes: 0 additions & 55 deletions src/desktop/apps/purchases/server.tsx

This file was deleted.

4 changes: 1 addition & 3 deletions src/desktop/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ app.use(require("./apps/auctions"))
app.use(require("./apps/auctions2").app)
app.use(require("./apps/auction_lots"))

// TODO: Remove after AB test ends.
app.use(require("./apps/purchases/server").app)
app.use(require("./apps/conversations/server").app)
// FIXME: Remove once JSONPage + new app shell is worked out
app.use(require("./apps/art_keeps_going/server").app)

app.use(require("./apps/artists"))
Expand Down
2 changes: 0 additions & 2 deletions src/v2/Apps/Conversation/Routes/Conversation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,3 @@ export const ConversationFragmentContainer = createFragmentContainer(
`,
}
)

export default ConversationFragmentContainer
3 changes: 2 additions & 1 deletion src/v2/Apps/Conversation/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import loadable from "@loadable/component"
import { RouteConfig } from "found"
import { graphql } from "react-relay"
import { ConversationFragmentContainer as ConversationRoute } from "./Routes/Conversation"

export const conversationRoutes: RouteConfig[] = [
{
Expand All @@ -26,7 +27,7 @@ export const conversationRoutes: RouteConfig[] = [
{
path: "/user/conversations/:conversationID",
displayFullPage: true,
getComponent: () => loadable(() => import("./Routes/Conversation")),
Component: ConversationRoute,
prepareVariables: (params, _props) => {
return {
conversationID: params.conversationID,
Expand Down
4 changes: 4 additions & 0 deletions src/v2/Apps/getAppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { collectRoutes } from "v2/Apps/Collect/collectRoutes"
import { conversationRoutes } from "v2/Apps/Conversation/routes"
import { routes as identityVerificationRoutes } from "v2/Apps/IdentityVerification/routes"
import { routes as orderRoutes } from "v2/Apps/Order/routes"
import { routes as purchasesRoutes } from "v2/Apps/Purchase/routes"
import { routes as searchRoutes } from "v2/Apps/Search/routes"
import { routes as viewingRoomRoutes } from "./ViewingRoom/routes"

Expand All @@ -29,6 +30,9 @@ export function getAppRoutes(): RouteConfig[] {
{
routes: orderRoutes,
},
{
routes: purchasesRoutes,
},
{
routes: searchRoutes,
},
Expand Down

0 comments on commit 2899821

Please sign in to comment.