Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Marino Rottier committed Aug 22, 2024
1 parent 3a7f1cb commit 8323bf3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Composer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createContext, ReactNode, useCallback, useContext, useEffect, useState } from 'react';
import React, { createContext, ReactNode, useContext, useEffect, useState } from 'react';
import { AudioGraph, AudioGraphLink } from '../core/AudioGraph';
import { DndContext, DragOverlay, useDndMonitor } from '@dnd-kit/core';
import { NodeTypes } from './Editor/Nodes';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Editor/Nodes/AudioParameterWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { FunctionComponent, ReactNode, useCallback, useEffect, useRef, useState } from "react";
import { FunctionComponent, ReactNode, useEffect, useState } from "react";
import ConditionalHandle from "../Handles/ConditionalHandle";
import { Position } from "@xyflow/react";
import { AudioGraphNode } from "../../../core/AudioGraph/AudioGraphNode";
import { useComposer } from "../../Composer";
import { AudioGraphLink } from "../../../core/AudioGraph";

interface AudioParameterWrapperProps {
children: ReactNode;
Expand Down
3 changes: 1 addition & 2 deletions src/core/AudioGraph/AudioGraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ vi.mock('standardized-audio-context', () => ({

import { AudioGraphNodes } from ".";
import { AudioGraph } from "./AudioGraph";
import { AudioGraphNode } from "./AudioGraphNode";
import { assert, beforeEach, describe, test, vi } from 'vitest';
import { AudioGraphNodeGain, AudioGraphNodeOscillator } from "./Nodes";
import { AudioGraphNodeOscillator } from "./Nodes";

describe("AudioGraph", () => {
let graph: AudioGraph;
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAudioParameter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { AudioGraphNode } from '../core/AudioGraph';
import { AudioGraphNode } from '../core/AudioGraph/AudioGraphNode';

export function useAudioParameter<T extends AudioGraphNode>(
audioNode: T | undefined,
Expand Down

0 comments on commit 8323bf3

Please sign in to comment.