This commit is contained in:
Maciej Kotowski committed 2021-10-03 20:16:58 +02:00
1 parent 42f0d64e56
commit 9490243314
3 files changed
+4 -14

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ const eventSchema = new schema({
required: false, required: false,
}, },
time: { time: {
type: Number, type: String,
required: true, required: true,
}, },
lat: { lat: {
+3 -4
View File
@@ -2,18 +2,17 @@ import { Link } from "react-router-dom";
import { BIcon } from "../BIcon"; import { BIcon } from "../BIcon";
import styles from "./index.module.scss"; import styles from "./index.module.scss";
import React, { useState, useEffect } from "react"; import React, { useState, useEffect } from "react";
import {orangeColor} from "../../index.scss";
export const EventPreview = (props) => { export const EventPreview = (props) => {
const [label, setLabel] = useState(""); const [label, setLabel] = useState("");
const [color, setColor] = useState("white"); const [color, setColor] = useState("white");
useEffect(() => { useEffect(() => {
console.log(orangeColor) //nie działa :((
switch (props.type) { switch (props.type) {
case 1: case 1:
setColor("green"); setColor("#53d188");
break; break;
case 2: case 2:
setColor("red"); setColor("#FBBEBE");
break; break;
default: default:
} }
-9
View File
@@ -8,15 +8,6 @@ $bg: #ffffff;
$orange:#FBBEBE; $orange:#FBBEBE;
$defaultWidth: 90vw; $defaultWidth: 90vw;
$maxWidth: 650px; $maxWidth: 650px;
$theme-colors: (
'orangeColor': #FBBEBE,
'anotherColor': #FFF,
);
:export {
@each $key, $value in $theme-colors {
#{unquote($key)}: $value;
}
}
* { * {
margin: 0; margin: 0;