Record --> ImmutableRecord
This commit is contained in:
parent
5ddc8542fd
commit
9537c87909
3 changed files with 12 additions and 4 deletions
|
@ -1,9 +1,13 @@
|
|||
import { Map as ImmutableMap, List as ImmutableList, Record } from 'immutable';
|
||||
import {
|
||||
Map as ImmutableMap,
|
||||
List as ImmutableList,
|
||||
Record as ImmutableRecord,
|
||||
} from 'immutable';
|
||||
|
||||
import { IAccount } from 'soapbox/types';
|
||||
import { mergeDefined } from 'soapbox/utils/normalizers';
|
||||
|
||||
const AccountRecord = Record({
|
||||
const AccountRecord = ImmutableRecord({
|
||||
acct: '',
|
||||
avatar: '',
|
||||
avatar_static: '',
|
||||
|
|
Binary file not shown.
|
@ -1,10 +1,14 @@
|
|||
import { Map as ImmutableMap, List as ImmutableList, Record } from 'immutable';
|
||||
import {
|
||||
Map as ImmutableMap,
|
||||
List as ImmutableList,
|
||||
Record as ImmutableRecord,
|
||||
} from 'immutable';
|
||||
|
||||
import { IStatus } from 'soapbox/types';
|
||||
import { accountToMention } from 'soapbox/utils/accounts';
|
||||
import { mergeDefined } from 'soapbox/utils/normalizers';
|
||||
|
||||
const StatusRecord = Record({
|
||||
const StatusRecord = ImmutableRecord({
|
||||
account: ImmutableMap(),
|
||||
application: null,
|
||||
bookmarked: false,
|
||||
|
|
Loading…
Reference in a new issue