horarios-v3/src/ContenedorHorarios/MiHorario.tsx

57 lines
1.6 KiB
TypeScript
Raw Normal View History

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";
import { mostrarDescansos, setMostrarDescansos } from "../Store";
2021-01-14 23:24:55 +00:00
export function MiHorario() {
const e = StyleSheet.create({
horario: {},
boton: {
textDecoration: "none",
// paddingRight: "0.5rem",
"::before": {
fontSize: "1rem",
// transform: "translateY(0.2rem)",
textDecoration: "none"
}
}
2021-01-14 23:24:55 +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>
<div>
<div className={css(
estilosGlobales.inlineBlock,
estilosGlobales.contenedor
)}>
Mi horario
</div>
{/*
<div
className={css(
estilosGlobales.inlineBlock,
estilosGlobales.contenedor,
estilosGlobales.contenedorCursor,
estilosGlobales.contenedorCursorSoft
)}
onClick={() => setMostrarDescansos(!mostrarDescansos())}
>
<i className={claseBotonMostrarDescansos()}/>
&nbsp;Mostrar descansos
</div>
*/}
2021-01-14 23:24:55 +00:00
</div>
2021-01-14 23:24:55 +00:00
<div className={css(
e.horario,
estilosGlobales.contenedor
2021-01-15 00:49:21 +00:00
)}>
<Tabla data={{}}/>
2021-01-15 00:49:21 +00:00
</div>
2021-01-14 23:24:55 +00:00
</div>;
}