mirror of
https://github.com/plankanban/planka.git
synced 2025-12-21 09:15:51 +03:00
Background gradients, migrate from CSS to SCSS, remove !important
This commit is contained in:
@@ -10,7 +10,7 @@ import EditNameStep from './EditNameStep';
|
||||
import EditBackgroundStep from './EditBackgroundStep';
|
||||
import DeleteStep from '../../DeleteStep';
|
||||
|
||||
import styles from './ActionsPopup.module.css';
|
||||
import styles from './ActionsPopup.module.scss';
|
||||
|
||||
const StepTypes = {
|
||||
EDIT_NAME: 'EDIT_NAME',
|
||||
@@ -54,11 +54,17 @@ const ActionsStep = React.memo(
|
||||
);
|
||||
|
||||
const handleBackgroundImageDelete = useCallback(() => {
|
||||
onUpdate({
|
||||
background: null,
|
||||
const data = {
|
||||
backgroundImage: null,
|
||||
});
|
||||
}, [onUpdate]);
|
||||
};
|
||||
|
||||
// TODO: move to services?
|
||||
if (project.background && project.background.type === 'image') {
|
||||
data.background = null;
|
||||
}
|
||||
|
||||
onUpdate(data);
|
||||
}, [project.background, onUpdate]);
|
||||
|
||||
if (step) {
|
||||
if (step) {
|
||||
@@ -76,6 +82,7 @@ const ActionsStep = React.memo(
|
||||
return (
|
||||
<EditBackgroundStep
|
||||
defaultValue={project.background}
|
||||
imageCoverUrl={project.backgroundImage && project.backgroundImage.coverUrl}
|
||||
isImageUpdating={project.isBackgroundImageUpdating}
|
||||
onUpdate={handleBackgroundUpdate}
|
||||
onImageUpdate={onBackgroundImageUpdate}
|
||||
|
||||
Reference in New Issue
Block a user