Skip to content

Commit

Permalink
Add warning about replacing active WAV slot
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat committed Sep 1, 2024
1 parent 32aa90e commit 175e6fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/SendSysex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Field } from "./Field";
import { Card } from "primereact/card";
import { SysexPreview } from "./SysexPreview";
import { SysexDownloadButton } from "./SysexDownloadButton";
import { Text } from "./Typography";

export const SendSysex: React.FC<{ readonly waveform: Waveform }> = ({
waveform,
Expand Down Expand Up @@ -77,6 +78,13 @@ export const SendSysex: React.FC<{ readonly waveform: Waveform }> = ({
<SysexDownloadButton waveform={waveform} />
<SysexPreview waveform={waveform} />
</Flex>

<Text secondary>
<em>
Note: This currently sends to the ACTIVE mGB WAV slot
<br /> (TODO: allow sending to specific slots)
</em>
</Text>
</Flex>
</Card>
);
Expand Down
7 changes: 7 additions & 0 deletions src/components/Typography.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styled from "@emotion/styled";

export const Text = styled.p<{ secondary?: boolean; italic?: boolean }>(
({ secondary }) => ({
color: secondary ? `var(--text-color-secondary)` : `var(--text-color)`,
})
);

0 comments on commit 175e6fa

Please sign in to comment.