2021-01-14 23:24:55 +00:00
|
|
|
import { estilosGlobales } from "../Estilos";
|
|
|
|
import { StyleSheet, css } from "aphrodite";
|
2021-01-15 00:49:21 +00:00
|
|
|
import { Tabla } from "./Tabla";
|
2021-01-15 13:34:24 +00:00
|
|
|
import { mostrarDescansos, setMostrarDescansos } from "../Store";
|
2021-01-14 23:24:55 +00:00
|
|
|
|
|
|
|
export function MiHorario() {
|
|
|
|
const e = StyleSheet.create({
|
2021-01-15 13:34:24 +00:00
|
|
|
horario: {},
|
|
|
|
boton: {
|
|
|
|
textDecoration: "none",
|
|
|
|
// paddingRight: "0.5rem",
|
|
|
|
"::before": {
|
|
|
|
fontSize: "1rem",
|
|
|
|
// transform: "translateY(0.2rem)",
|
|
|
|
textDecoration: "none"
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 23:24:55 +00:00
|
|
|
});
|
|
|
|
|
2021-01-15 13:34:24 +00:00
|
|
|
const claseBotonMostrarDescansos = () =>
|
|
|
|
mostrarDescansos()
|
|
|
|
? "ph-check " + css(e.boton)
|
|
|
|
: "ph-circle " + css(e.boton);
|
|
|
|
|
2021-01-14 23:24:55 +00:00
|
|
|
return <div>
|
2021-01-15 13:34:24 +00:00
|
|
|
<div>
|
|
|
|
<div className={css(
|
|
|
|
estilosGlobales.inlineBlock,
|
|
|
|
estilosGlobales.contenedor
|
|
|
|
)}>
|
|
|
|
Mi horario
|
|
|
|
</div>
|
2021-01-15 13:50:32 +00:00
|
|
|
{/*
|
2021-01-15 13:34:24 +00:00
|
|
|
<div
|
|
|
|
className={css(
|
|
|
|
estilosGlobales.inlineBlock,
|
|
|
|
estilosGlobales.contenedor,
|
|
|
|
estilosGlobales.contenedorCursor,
|
|
|
|
estilosGlobales.contenedorCursorSoft
|
|
|
|
)}
|
|
|
|
onClick={() => setMostrarDescansos(!mostrarDescansos())}
|
|
|
|
>
|
|
|
|
<i className={claseBotonMostrarDescansos()}/>
|
|
|
|
Mostrar descansos
|
|
|
|
</div>
|
2021-01-15 13:50:32 +00:00
|
|
|
*/}
|
2021-01-14 23:24:55 +00:00
|
|
|
</div>
|
2021-01-15 13:34:24 +00:00
|
|
|
|
2021-01-14 23:24:55 +00:00
|
|
|
<div className={css(
|
|
|
|
e.horario,
|
|
|
|
estilosGlobales.contenedor
|
2021-01-15 00:49:21 +00:00
|
|
|
)}>
|
2021-01-16 00:34:43 +00:00
|
|
|
<Tabla data={{}} anio={"Mi horario"} version={1}/>
|
2021-01-15 00:49:21 +00:00
|
|
|
</div>
|
2021-01-14 23:24:55 +00:00
|
|
|
</div>;
|
|
|
|
}
|