feat: Toggle actions details, little redesign

This commit is contained in:
Maksim Eltyshev
2022-07-29 17:40:18 +02:00
parent e1ac5959ba
commit 45f35e8042
25 changed files with 301 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
import { Model, attr, fk } from 'redux-orm';
import { Model, attr, fk, oneToOne } from 'redux-orm';
import ActionTypes from '../constants/ActionTypes';
@@ -15,16 +15,15 @@ export default class extends Model {
as: 'user',
relatedName: 'notifications',
}),
actionId: fk({
to: 'Action',
as: 'action',
relatedName: 'notifications',
}),
cardId: fk({
to: 'Card',
as: 'card',
relatedName: 'notifications',
}),
actionId: oneToOne({
to: 'Action',
as: 'action',
}),
};
static reducer({ type, payload }, Notification) {