cleanup div
This commit is contained in:
parent
66aad0004a
commit
70e776e799
1 changed files with 19 additions and 19 deletions
|
|
@ -79,26 +79,26 @@ export function SoundsTab() {
|
||||||
}}
|
}}
|
||||||
></ButtonGroup>
|
></ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
{soundsFilter === soundFilterType.USER && soundEntries.length > 0 && (
|
{soundsFilter === soundFilterType.USER && soundEntries.length > 0 && (
|
||||||
<ActionButton
|
<ActionButton
|
||||||
className="pl-2"
|
className="pl-2"
|
||||||
label="delete-all"
|
label="delete-all"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
try {
|
try {
|
||||||
const confirmed = await confirmDialog('Delete all imported user samples?');
|
const confirmed = await confirmDialog('Delete all imported user samples?');
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
clearIDB(userSamplesDBConfig.dbName);
|
clearIDB(userSamplesDBConfig.dbName);
|
||||||
soundMap.set({});
|
soundMap.set({});
|
||||||
await prebake();
|
await prebake();
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
}
|
||||||
}}
|
} catch (e) {
|
||||||
/>
|
console.error(e);
|
||||||
)}
|
}
|
||||||
</div>
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
|
||||||
<div className="min-h-0 max-h-full grow overflow-auto text-sm break-normal bg-background p-2 rounded-md">
|
<div className="min-h-0 max-h-full grow overflow-auto text-sm break-normal bg-background p-2 rounded-md">
|
||||||
{soundEntries.map(([name, { data, onTrigger }]) => {
|
{soundEntries.map(([name, { data, onTrigger }]) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue