EscolaLMS/Front

View on GitHub

Showing 585 of 585 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

  return (
    <Link to={`/consultations/${product.id}`}>
      {product.poster_path ? (
        <ResponsiveImage
          path={product.poster_path}
src/components/Consultations/ConsultationCard/Image/index.tsx on lines 11..23

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 93.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={12}>
                <Input
                  type="text"
                  name="client_company"
                  label={t("InvoiceData.ClientCompanyName")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 77..87
src/components/Cart/BillingForm/index.tsx on lines 100..110
src/components/Cart/BillingForm/index.tsx on lines 111..123
src/components/Cart/BillingForm/index.tsx on lines 124..134
src/components/Cart/BillingForm/index.tsx on lines 135..145
src/components/Cart/BillingForm/index.tsx on lines 146..156

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={12}>
                <Input
                  type="text"
                  name="client_country"
                  label={t("InvoiceData.ClientCountry")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 77..87
src/components/Cart/BillingForm/index.tsx on lines 88..98
src/components/Cart/BillingForm/index.tsx on lines 100..110
src/components/Cart/BillingForm/index.tsx on lines 111..123
src/components/Cart/BillingForm/index.tsx on lines 124..134
src/components/Cart/BillingForm/index.tsx on lines 135..145

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

              price={
                // @ts-ignore TODO: missed in sdk
                item.public ? (
                  <div className="course-price">{t("FREE")}</div>
                ) : (
Severity: Major
Found in src/components/Courses/CoursesCollection/list.tsx and 2 other locations - About 2 hrs to fix
src/components/Courses/CoursesSlider/index.tsx on lines 68..79
src/components/Courses/CoursesSlider/index.tsx on lines 125..136

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={4}>
                <Input
                  type="text"
                  name="client_postal"
                  label={t("InvoiceData.ClientPostalCode")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 77..87
src/components/Cart/BillingForm/index.tsx on lines 88..98
src/components/Cart/BillingForm/index.tsx on lines 100..110
src/components/Cart/BillingForm/index.tsx on lines 111..123
src/components/Cart/BillingForm/index.tsx on lines 135..145
src/components/Cart/BillingForm/index.tsx on lines 146..156

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                  price={
                    // @ts-ignore TODO: missed in sdk
                    item.public ? (
                      <div className="course-price">{t("FREE")}</div>
                    ) : (
Severity: Major
Found in src/components/Courses/CoursesSlider/index.tsx and 2 other locations - About 2 hrs to fix
src/components/Courses/CoursesCollection/list.tsx on lines 68..79
src/components/Courses/CoursesSlider/index.tsx on lines 125..136

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

          {webinar.value.active_from && (
            <div className="single-label">
              <LabelListItem
                title={t("WebinarPage.StartDate")}
                variant={"label"}
Severity: Major
Found in src/components/Webinars/Webinar/WebinarInfo/index.tsx and 2 other locations - About 2 hrs to fix
src/components/Events/Event/EventInfo/index.tsx on lines 77..88
src/components/Webinars/Webinar/WebinarInfo/index.tsx on lines 88..96

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        <Dropdown
          onChange={(e) => setQuestionnaireId(Number(e.value))}
          options={questionnairesFilter}
          placeholder={t("CoursePage.SelectQuestionnaire")}
          backgroundColor={theme.white}
src/pages/courses/course/Components/CourseRatings/Questionnaires/Dropdowns/index.tsx on lines 57..65

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      <Dropdown
        onChange={(e) => setQuestionId(Number(e.value))}
        options={questionnaireQuestionFilter}
        placeholder={t("CoursePage.SelectQuestion")}
        backgroundColor={theme.white}
src/pages/courses/course/Components/CourseRatings/Questionnaires/Dropdowns/index.tsx on lines 47..55

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={8}>
                <Input
                  type="text"
                  name="client_street"
                  label={t("InvoiceData.ClientAddress")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 77..87
src/components/Cart/BillingForm/index.tsx on lines 88..98
src/components/Cart/BillingForm/index.tsx on lines 111..123
src/components/Cart/BillingForm/index.tsx on lines 124..134
src/components/Cart/BillingForm/index.tsx on lines 135..145
src/components/Cart/BillingForm/index.tsx on lines 146..156

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={8}>
                <Input
                  type="text"
                  name="client_city"
                  label={t("InvoiceData.ClientCity")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 77..87
src/components/Cart/BillingForm/index.tsx on lines 88..98
src/components/Cart/BillingForm/index.tsx on lines 100..110
src/components/Cart/BillingForm/index.tsx on lines 111..123
src/components/Cart/BillingForm/index.tsx on lines 124..134
src/components/Cart/BillingForm/index.tsx on lines 146..156

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

          {stationaryEvent.value.started_at && (
            <div className="single-label">
              <LabelListItem
                title={t("CoursePage.StartDate")}
                variant={"label"}
Severity: Major
Found in src/components/Events/Event/EventInfo/index.tsx and 2 other locations - About 2 hrs to fix
src/components/Webinars/Webinar/WebinarInfo/index.tsx on lines 76..87
src/components/Webinars/Webinar/WebinarInfo/index.tsx on lines 88..96

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={4}>
                <Input
                  type="text"
                  name="client_street_number"
                  label={t("InvoiceData.ClientStreetNumber")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 77..87
src/components/Cart/BillingForm/index.tsx on lines 88..98
src/components/Cart/BillingForm/index.tsx on lines 100..110
src/components/Cart/BillingForm/index.tsx on lines 124..134
src/components/Cart/BillingForm/index.tsx on lines 135..145
src/components/Cart/BillingForm/index.tsx on lines 146..156

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

          {webinar.value.active_to && (
            <div className="single-label">
              <LabelListItem title={t("WebinarPage.EndDate")} variant={"label"}>
                {webinar.value.active_to
                  ? formatDate(webinar.value.active_to)
Severity: Major
Found in src/components/Webinars/Webinar/WebinarInfo/index.tsx and 2 other locations - About 2 hrs to fix
src/components/Events/Event/EventInfo/index.tsx on lines 77..88
src/components/Webinars/Webinar/WebinarInfo/index.tsx on lines 76..87

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 7 locations. Consider refactoring.
Open

              <Col lg={12}>
                <Input
                  type="text"
                  name="client_taxid"
                  label={t("InvoiceData.ClientTaxId")}
Severity: Major
Found in src/components/Cart/BillingForm/index.tsx and 6 other locations - About 2 hrs to fix
src/components/Cart/BillingForm/index.tsx on lines 88..98
src/components/Cart/BillingForm/index.tsx on lines 100..110
src/components/Cart/BillingForm/index.tsx on lines 111..123
src/components/Cart/BillingForm/index.tsx on lines 124..134
src/components/Cart/BillingForm/index.tsx on lines 135..145
src/components/Cart/BillingForm/index.tsx on lines 146..156

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                price={
                  // @ts-ignore TODO: missed in sdk
                  item.public ? (
                    <div className="course-price">{t("FREE")}</div>
                  ) : (
Severity: Major
Found in src/components/Courses/CoursesSlider/index.tsx and 2 other locations - About 2 hrs to fix
src/components/Courses/CoursesCollection/list.tsx on lines 68..79
src/components/Courses/CoursesSlider/index.tsx on lines 68..79

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 92.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function useSubscriptions has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useSubscriptions = () => {
  const {
    fetchProducts,
    fetchMyProducts,
    products,
Severity: Major
Found in src/hooks/useSubscriptions.ts - About 2 hrs to fix

    Function CoursePanelFinishPage has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const CoursePanelFinishPage = () => {
      const [state, setState] = useState<State>({
        showModal: false,
        isAnyQuestionnaire: null,
        showCertificate: false,
    Severity: Major
    Found in src/components/Courses/Course/CoursePanelLayout/FinishPage/index.tsx - About 2 hrs to fix

      Function StaticPage has 71 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const StaticPage = () => {
        const { slug } = useParams<{ slug: string }>();
        const { fetchPage, page, fetchPages, pages } = useContext(EscolaLMSContext);
      
        const prevSlug = usePrevious(slug);
      Severity: Major
      Found in src/pages/static-page/index.tsx - About 2 hrs to fix

        Function ConsultationsSlider has 70 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const ConsultationsSlider: React.FC<ConsultationsSliderProps> = (props) => {
          const {
            category,
            title = category,
            consultations,
        Severity: Major
        Found in src/components/Consultations/ConsultationsSlider/index.tsx - About 2 hrs to fix
          Severity
          Category
          Status
          Source
          Language