-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: accurately refelct switch state in the render
- Loading branch information
1 parent
c230012
commit 1d93bfa
Showing
34 changed files
with
297 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
src/renderer/components/InputConfigDrawer/InputConfigPanel/InputDefaultsSubpanel/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
import { MonoInputDTO } from '@shared/hardware-config/input-config/mono-input-dto'; | ||
import { MonoInputAggregate } from '../mono-input-aggregate'; | ||
import { InputDTO } from '@shared/hardware-config/input-config/base-input-config'; | ||
|
||
type PropTypes = { | ||
inputs: MonoInputDTO[]; | ||
input: InputDTO; | ||
}; | ||
|
||
export default function InputDefaultsSubpanel(props: PropTypes) { | ||
const { inputs } = props; | ||
|
||
const group = new MonoInputAggregate(inputs); | ||
const { input } = props; | ||
|
||
return ( | ||
<div className="subpanel input-defaults-subpanel"> | ||
<h1>Default MIDI Settings</h1> | ||
<p>Output Response: {group.outputResponse}</p> | ||
<p>Event Type: {group.statusString}</p> | ||
<p>Channel: {group.channel}</p> | ||
<p>Number: {group.number}</p> | ||
<p>Output Response: {input.defaults.response}</p> | ||
<p>Event Type: {input.defaults.statusString}</p> | ||
<p>Channel: {input.defaults.channel}</p> | ||
<p>Number: {input.defaults.number}</p> | ||
</div> | ||
); | ||
} |
27 changes: 8 additions & 19 deletions
27
src/renderer/components/InputConfigDrawer/InputConfigPanel/InputDetailsSubpanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
...ConfigDrawer/InputConfigPanel/MonoInputConfigSubpanel/dropdowns/LightResponseDropdown.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.