From ed2e034b12b15c5b4ac638e6b89a4ee9a7ed5012 Mon Sep 17 00:00:00 2001
From: Nathanaël Houn <contact@nathanaelhoun.fr>
Date: Sun, 15 May 2022 23:42:36 +0200
Subject: fix: revert "Typescript conversion" (#153)

This reverts commit 8b1bfc356c3182c481394251f3ceeb902f2baec3.
---
 src/components/settings/recipes/RecipeItem.tsx | 32 --------------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 src/components/settings/recipes/RecipeItem.tsx

(limited to 'src/components/settings/recipes/RecipeItem.tsx')

diff --git a/src/components/settings/recipes/RecipeItem.tsx b/src/components/settings/recipes/RecipeItem.tsx
deleted file mode 100644
index 1dfe88683..000000000
--- a/src/components/settings/recipes/RecipeItem.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { Component } from 'react';
-import { observer } from 'mobx-react';
-
-import RecipePreviewModel from '../../../models/RecipePreview';
-
-type Props = {
-  recipe: RecipePreviewModel;
-  onClick: () => {};
-};
-
-class RecipeItem extends Component<Props> {
-  render() {
-    const { recipe, onClick } = this.props;
-
-    return (
-      <button type="button" className="recipe-teaser" onClick={onClick}>
-        {recipe.isDevRecipe && (
-          <span className="recipe-teaser__dev-badge">dev</span>
-        )}
-        <img src={recipe.icon} className="recipe-teaser__icon" alt="" />
-        <span className="recipe-teaser__label">{recipe.name}</span>
-        {recipe.aliases && recipe.aliases.length > 0 && (
-          <span className="recipe-teaser__alias_label">
-            {`Aliases: ${recipe.aliases.join(', ')}`}
-          </span>
-        )}
-      </button>
-    );
-  }
-}
-
-export default observer(RecipeItem);
-- 
cgit v1.2.3-70-g09d2

