Commit e8d3255b authored by anton's avatar anton

first_lesson-2

parent 1f92f8df
......@@ -2,7 +2,7 @@ import { IngredientNames } from "@/interfaces/burger-interface";
import "./Ingredient.css";
interface Props {
type: IngredientNames;
type: IngredientNames | "bread-top" | "bread-bottom";
}
export function Ingredient({ type }: Props) {
......
......@@ -9,8 +9,6 @@ export function BurgerBuilder() {
cheese: 0,
bacon: 0,
meat: 0,
"bread-bottom": 0,
"bread-top": 0,
});
return (
<>
......
export type IngredientNames = "salad" | "cheese" | "meat" | "bacon" | "bread-top" | "bread-bottom";
export type IngredientNames = "salad" | "cheese" | "meat" | "bacon";
export type Ingredients = {
[key in IngredientNames]: number;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment