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