Archived
hot fix
This commit is contained in:
1 parent
42f0d64e56
commit
9490243314
3 files changed
+4
-14
No files matched your search
@@ -17,7 +17,7 @@ const eventSchema = new schema({
|
||||
required: false,
|
||||
},
|
||||
time: {
|
||||
type: Number,
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
lat: {
|
||||
|
||||
@@ -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:
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user