Skip to content

Commit

Permalink
Use components for effects, tags and noteSequences
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindehli committed Apr 21, 2024
1 parent b62b98c commit 88d84d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/DecentSampler/DecentSamplerItemComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { List } from "@mui/material";
// Components
import { UiItemComponent } from "./Ui/UiItemComponent";
import { GroupsItemComponent } from "./Groups/GroupsItemComponent";
import { EffectsItemComponent } from "./Effects/EffectsItemComponent";
import { TagsItemComponent } from "./Tags/TagsItemComponent";
import { NoteSequencesItemComponent } from "./NoteSequences/NoteSequencesItem";

export function DecentSamplerItemComponent({ decentSamplerItem }) {
function renderChildElement(childElement) {
Expand All @@ -15,6 +18,12 @@ export function DecentSamplerItemComponent({ decentSamplerItem }) {
return <UiItemComponent key={childElement.id} uiItem={childElement} />;
case "groups":
return <GroupsItemComponent key={childElement.id} groupsItem={childElement} />;
case "effects":
return <EffectsItemComponent key={childElement.id} effectsItem={childElement} />;
case "tags":
return <TagsItemComponent key={childElement.id} tagsItem={childElement} />;
case "noteSequences":
return <NoteSequencesItemComponent key={childElement.id} noteSequencesItem={childElement} />;
default:
return null;
}
Expand Down

0 comments on commit 88d84d9

Please sign in to comment.