mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 21:39:36 +02:00
Update bookmark. Changes to CSS. Changes to WeatherJob
This commit is contained in:
parent
519b6d0746
commit
96aa1f7d69
11 changed files with 165 additions and 36 deletions
|
@ -17,7 +17,7 @@ interface ComponentProps {
|
|||
addCategory: (formData: NewCategory) => void;
|
||||
addBookmark: (formData: NewBookmark) => void;
|
||||
updateCategory: (id: number, formData: NewCategory) => void;
|
||||
updateBookmark: (id: number, formData: NewBookmark) => void;
|
||||
updateBookmark: (id: number, formData: NewBookmark, categoryWasChanged: boolean) => void;
|
||||
createNotification: (notification: NewNotification) => void;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ const BookmarkForm = (props: ComponentProps): JSX.Element => {
|
|||
setCategoryName({ name: '' });
|
||||
} else if (props.contentType === ContentType.bookmark && props.bookmark) {
|
||||
// Update bookmark
|
||||
props.updateBookmark(props.bookmark.id, formData);
|
||||
props.updateBookmark(props.bookmark.id, formData, props.bookmark.categoryId !== formData.categoryId);
|
||||
setFormData({
|
||||
name: '',
|
||||
url: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue