Skip to content

Commit

Permalink
Merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasSJacobsen committed Oct 5, 2020
2 parents 3504b17 + 33aeafe commit 4798db4
Show file tree
Hide file tree
Showing 31 changed files with 18 additions and 4 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions src/BackOffice/AddPost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const AddPost = ({
],
);


const [errors, setErrors] = useState({
address: false,
googleMaps: false,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,23 @@ const CreateNewEvent = ({
const readyForDatabase = () => {
const isMentorBoard = availableGroups.indexOf("all") >= 0;

const getGroupOrder = () => {
const order = [];
posts.forEach(post => order.unshift(post.startGroup));
return order;
}

const assignGroupOrder = () => {
const groupOrder = getGroupOrder();
posts.forEach(post => {
while(groupOrder[0] !== post.startGroup) {
groupOrder.push(groupOrder.shift());
}
post.order = [...groupOrder];
});
}

posts.forEach(obj => {
obj.rekkefølge = [obj.startGroup];
});
assignGroupOrder();

const event = {
title_NO: titleNO,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Frontend/App.js → src/Frontend/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function App(props) {
subEvents: subEvents.filter((s) => s.parent_event_id === e.id),
}));

const coronaClosed = true;
const coronaClosed = false;

return (
<AppContext.Provider value={[state, setState]}>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4798db4

Please sign in to comment.