Skip to content

Commit

Permalink
chore: Remove unused code in MultiInputPreview.js and update input ha…
Browse files Browse the repository at this point in the history
…ndling in QuickOutput
  • Loading branch information
amirnd51 committed Jul 24, 2024
1 parent 9d836ab commit 3c3aaa5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/components/Experiment/QuickOutput/MultiInputPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@ const inputTypes = {
export default function MultiInputPreview(givenProps) {
const props = { ...defaultProps, ...givenProps };
const { getBlock, getElement } = useBEMNaming(props.className);
const getInput = () => {
switch (props.inputType) {
case "text":
return <p className={getElement("text")}>{props.input.src}</p>;
case "audio":
return <audio className={getElement("audio")} controls src={props.input.src} />;
case "image":
return <img className={getElement("image")} src={props.input.src} />;
default:
return <p>Not currently supported</p>;
}
};

const getInputs = (input) => {
switch (input.inputType) {
case TaskInputTypes.Text:
Expand Down

0 comments on commit 3c3aaa5

Please sign in to comment.