parity: make image swatches disable when clicking on activated background

This commit is contained in:
SethBurkart123
2024-02-27 09:59:01 +11:00
parent 3aa4ec9412
commit c7bc51b8e0
@@ -106,6 +106,11 @@ function BackgroundSelector({ selectedType, setSelectedType, isEditMode }: Backg
};
const selectBackground = (fileId: string): void => {
if (selectedType == 'background' && selectedBackground == fileId) {
selectNoBackground();
return;
}
disableTheme();
setSelectedType('background');
setSelectedBackground(fileId);