mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-27 23:09:35 +02:00
Split categories and bookmarks forms into separate files. Added visibility functionality to categories and bookmarks
This commit is contained in:
parent
f127a354ef
commit
d83e3056c6
16 changed files with 484 additions and 369 deletions
16
client/src/utility/templateObjects/categoryTemplate.ts
Normal file
16
client/src/utility/templateObjects/categoryTemplate.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { Category, NewCategory } from '../../interfaces';
|
||||
|
||||
export const newCategoryTemplate: NewCategory = {
|
||||
name: '',
|
||||
isPublic: true,
|
||||
};
|
||||
|
||||
export const categoryTemplate: Category = {
|
||||
...newCategoryTemplate,
|
||||
id: -1,
|
||||
isPinned: false,
|
||||
orderId: 0,
|
||||
bookmarks: [],
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue