mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-28 07:09:36 +02:00
Add custom icons to bookmarks (#5)
* allow custom icons for bookmarks * update docker-image action to tag images based on source branch
This commit is contained in:
parent
1b57668792
commit
0097ae2a77
2 changed files with 25 additions and 24 deletions
|
@ -50,10 +50,10 @@ const Bookmarks = (props: ComponentProps): JSX.Element => {
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
});
|
});
|
||||||
const [bookmarkInUpdate, setBookmarkInUpdate] = useState<Bookmark>({
|
const [bookmarkInUpdate, setBookmarkInUpdate] = useState<Bookmark>({
|
||||||
name: "",
|
name: "string",
|
||||||
url: "",
|
url: "string",
|
||||||
categoryId: -1,
|
categoryId: -1,
|
||||||
icon: "",
|
icon: "string",
|
||||||
isPinned: false,
|
isPinned: false,
|
||||||
orderId: 0,
|
orderId: 0,
|
||||||
id: 0,
|
id: 0,
|
||||||
|
|
|
@ -138,7 +138,8 @@ export interface AddAppAction {
|
||||||
payload: App;
|
payload: App;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const addApp = (formData: NewApp | FormData) => async (dispatch: Dispatch) => {
|
export const addApp =
|
||||||
|
(formData: NewApp | FormData) => async (dispatch: Dispatch) => {
|
||||||
try {
|
try {
|
||||||
const res = await axios.post<ApiResponse<App>>("/api/apps", formData);
|
const res = await axios.post<ApiResponse<App>>("/api/apps", formData);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue