mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: ci warning
This commit is contained in:
parent
7839ad26c4
commit
d0558e4da1
@ -9,7 +9,7 @@ export const useDatabase = () => {
|
||||
const database = useAppSelector((state) => state.database);
|
||||
|
||||
const newField = () => {
|
||||
dispatch(
|
||||
/* dispatch(
|
||||
databaseActions.addField({
|
||||
field: {
|
||||
fieldId: nanoid(8),
|
||||
@ -18,22 +18,25 @@ export const useDatabase = () => {
|
||||
title: 'new field',
|
||||
},
|
||||
})
|
||||
);
|
||||
);*/
|
||||
console.log('depreciated');
|
||||
};
|
||||
|
||||
const renameField = (fieldId: string, newTitle: string) => {
|
||||
const field = database.fields[fieldId];
|
||||
/* const field = database.fields[fieldId];
|
||||
field.title = newTitle;
|
||||
|
||||
dispatch(
|
||||
databaseActions.updateField({
|
||||
field,
|
||||
})
|
||||
);
|
||||
);*/
|
||||
console.log('depreciated');
|
||||
};
|
||||
|
||||
const newRow = () => {
|
||||
dispatch(databaseActions.addRow());
|
||||
// dispatch(databaseActions.addRow());
|
||||
console.log('depreciated');
|
||||
};
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user