only show button on user samples

This commit is contained in:
Jade (Rose) Rowland 2025-09-07 22:27:48 -04:00
parent e7e80bfd83
commit 5414bbe85d

View file

@ -79,7 +79,7 @@ export function SoundsTab() {
}} }}
></ButtonGroup> ></ButtonGroup>
</div> </div>
{ {soundsFilter === soundFilterType.USER && soundEntries.length > 0 && (
<ActionButton <ActionButton
label="delete-all" label="delete-all"
onClick={async () => { onClick={async () => {
@ -95,7 +95,7 @@ export function SoundsTab() {
} }
}} }}
/> />
} )}
<div className="min-h-0 max-h-full grow overflow-auto text-sm break-normal pb-2"> <div className="min-h-0 max-h-full grow overflow-auto text-sm break-normal pb-2">
{soundEntries.map(([name, { data, onTrigger }]) => { {soundEntries.map(([name, { data, onTrigger }]) => {
@ -174,7 +174,7 @@ export function SoundsTab() {
) : ( ) : (
'' ''
)} )}
{!soundEntries.length && soundsFilter !== 'importSounds' ? 'No custom sounds loaded (yet).' : ''} {!soundEntries.length && soundsFilter !== 'importSounds' ? 'No sounds loaded' : ''}
</div> </div>
</div> </div>
); );