Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
B
burger-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Антон Тыщенко
burger-project
Commits
e8d3255b
Commit
e8d3255b
authored
Nov 27, 2025
by
anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first_lesson-2
parent
1f92f8df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
Ingredient.tsx
src/components/Burger/Ingredient/Ingredient.tsx
+1
-1
BurgerBuilder.tsx
src/containers/BurgerBuilder/BurgerBuilder.tsx
+0
-2
burger-interface.ts
src/interfaces/burger-interface.ts
+1
-1
No files found.
src/components/Burger/Ingredient/Ingredient.tsx
View file @
e8d3255b
...
@@ -2,7 +2,7 @@ import { IngredientNames } from "@/interfaces/burger-interface";
...
@@ -2,7 +2,7 @@ import { IngredientNames } from "@/interfaces/burger-interface";
import
"./Ingredient.css"
;
import
"./Ingredient.css"
;
interface
Props
{
interface
Props
{
type
:
IngredientNames
;
type
:
IngredientNames
|
"bread-top"
|
"bread-bottom"
;
}
}
export
function
Ingredient
({
type
}:
Props
)
{
export
function
Ingredient
({
type
}:
Props
)
{
...
...
src/containers/BurgerBuilder/BurgerBuilder.tsx
View file @
e8d3255b
...
@@ -9,8 +9,6 @@ export function BurgerBuilder() {
...
@@ -9,8 +9,6 @@ export function BurgerBuilder() {
cheese
:
0
,
cheese
:
0
,
bacon
:
0
,
bacon
:
0
,
meat
:
0
,
meat
:
0
,
"bread-bottom"
:
0
,
"bread-top"
:
0
,
});
});
return
(
return
(
<>
<>
...
...
src/interfaces/burger-interface.ts
View file @
e8d3255b
export
type
IngredientNames
=
"salad"
|
"cheese"
|
"meat"
|
"bacon"
|
"bread-top"
|
"bread-bottom"
;
export
type
IngredientNames
=
"salad"
|
"cheese"
|
"meat"
|
"bacon"
;
export
type
Ingredients
=
{
export
type
Ingredients
=
{
[
key
in
IngredientNames
]:
number
;
[
key
in
IngredientNames
]:
number
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment