<commit_before>import React from "react"
import { graphql } from "react-relay"
import { OrderApp } from "./OrderApp"

// @ts-ignore
import { PaymentFragmentContainer as PaymentRoute } from "Apps/Order/Routes/Payment"
// @ts-ignore
import { ReviewFragmentContainer as ReviewRoute } from "Apps/Order/Routes/Review"
// @ts-ignore
import { ShippingFragmentContainer as ShippingRoute } from "Apps/Order/Routes/Shipping"
// @ts-ignore
import { SubmissionFragmentContainer as SubmissionRoute } from "Apps/Order/Routes/Submission"

// @ts-ignore
import { ComponentClass, StatelessComponent } from "react"

// @ts-ignore
import { PaymentProps } from "./Routes/Payment"
// @ts-ignore
import { ReviewProps } from "./Routes/Review"
// @ts-ignore
import { ShippingProps } from "./Routes/Shipping"
// @ts-ignore
import { SubmissionProps } from "./Routes/Submission"

const renderCurrentStep = step => ({ props, Component }) => (
  <Component currentStepIndex={step} {...props} />
)

export const routes = [
  {
    path: "/order2/:orderID",
    Component: OrderApp,
    query: graphql`
      query routes_OrderQuery {
        me {
          name
        }
      }
    `,
    children: [
      {
        path: "shipping",
        Component: ShippingRoute,
        render: renderCurrentStep(0),
        query: graphql`
          query routes_ShippingQuery($orderID: String!) {
            order(id: $orderID) {
              ...Shipping_order
            }
          }
        `,
      },
      {
        path: "payment",
        Component: PaymentRoute,
        render: renderCurrentStep(1),
        query: graphql`
          query routes_PaymentQuery($orderID: String!) {
            order(id: $orderID) {
              ...Payment_order
            }
          }
        `,
      },
      {
        path: "review",
        Component: ReviewRoute,
        render: renderCurrentStep(2),
        query: graphql`
          query routes_ReviewQuery($orderID: String!) {
            order(id: $orderID) {
              ...Review_order
            }
          }
        `,
      },
      {
        path: "submission",
        Component: SubmissionRoute,
        query: graphql`
          query routes_SubmissionQuery($orderID: String!) {
            order(id: $orderID) {
              ...Submission_order
            }
          }
        `,
      },
    ],
  },
]<commit_msg>Clean routes b/c OrderApp handlers step rendering<commit_after>import { graphql } from "react-relay"
import { OrderApp } from "./OrderApp"

// @ts-ignore
import { PaymentFragmentContainer as PaymentRoute } from "Apps/Order/Routes/Payment"
// @ts-ignore
import { ReviewFragmentContainer as ReviewRoute } from "Apps/Order/Routes/Review"
// @ts-ignore
import { ShippingFragmentContainer as ShippingRoute } from "Apps/Order/Routes/Shipping"
// @ts-ignore
import { SubmissionFragmentContainer as SubmissionRoute } from "Apps/Order/Routes/Submission"

// @ts-ignore
import { ComponentClass, StatelessComponent } from "react"

// @ts-ignore
import { PaymentProps } from "./Routes/Payment"
// @ts-ignore
import { ReviewProps } from "./Routes/Review"
// @ts-ignore
import { ShippingProps } from "./Routes/Shipping"
// @ts-ignore
import { SubmissionProps } from "./Routes/Submission"

export const routes = [
  {
    path: "/order2/:orderID",
    Component: OrderApp,
    query: graphql`
      query routes_OrderQuery {
        me {
          name
        }
      }
    `,
    children: [
      {
        path: "shipping",
        Component: ShippingRoute,
        query: graphql`
          query routes_ShippingQuery($orderID: String!) {
            order(id: $orderID) {
              ...Shipping_order
            }
          }
        `,
      },
      {
        path: "payment",
        Component: PaymentRoute,
        query: graphql`
          query routes_PaymentQuery($orderID: String!) {
            order(id: $orderID) {
              ...Payment_order
            }
          }
        `,
      },
      {
        path: "review",
        Component: ReviewRoute,
        query: graphql`
          query routes_ReviewQuery($orderID: String!) {
            order(id: $orderID) {
              ...Review_order
            }
          }
        `,
      },
      {
        path: "submission",
        Component: SubmissionRoute,
        query: graphql`
          query routes_SubmissionQuery($orderID: String!) {
            order(id: $orderID) {
              ...Submission_order
            }
          }
        `,
      },
    ],
  },
]
{'fraction_non_alphanumeric': 0.12154942119323241, 'fraction_numerical': 0.0011130899376669634, 'mean_word_length': 1.9080906148867314, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7216744', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1272, 'n_words': 272}