Timeline
This commit is contained in:
parent
680bbe7d6c
commit
58920a111a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ export const postsSlice = createSlice({
|
||||||
reducers: {
|
reducers: {
|
||||||
addPost: (state,{payload}) => {
|
addPost: (state,{payload}) => {
|
||||||
let uuid = window.crypto.randomUUID();
|
let uuid = window.crypto.randomUUID();
|
||||||
state.posts.push({
|
state.posts.unshift({
|
||||||
id: uuid,
|
id: uuid,
|
||||||
date: moment().toJSON(),
|
date: moment().toJSON(),
|
||||||
context: payload
|
context: payload
|
||||||
|
|
Loading…
Reference in New Issue