Skip to content

Commit

Permalink
fix: add props validation to Feature component
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoVazquez committed Dec 30, 2023
1 parent d446427 commit 8c15604
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/docs/lumberjack-docs-app/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Layout from '@theme/Layout';
import clsx from 'clsx';
import React from 'react';
import styles from './styles.module.css';
import PropTypes from 'prop-types';

const features = [
{
Expand Down Expand Up @@ -48,6 +49,12 @@ function Feature({ imageUrl, title, description }) {
);
}

Feature.propTypes = {
imageUrl: PropTypes.string,
title: PropTypes.string,
description: PropTypes.node,
};

function Home() {
const context = useDocusaurusContext();
const { siteConfig = {} } = context;
Expand Down

0 comments on commit 8c15604

Please sign in to comment.