upd
This commit is contained in:
@@ -6,7 +6,6 @@ import useSidebarTabStore from "../stores/useSidebarStore";
|
||||
import TimeSelector from "./TimeSelector";
|
||||
import CloseIcon from "./icons/CloseIcon";
|
||||
import {
|
||||
addMinutes,
|
||||
eachMinuteOfInterval,
|
||||
format,
|
||||
isAfter,
|
||||
@@ -107,7 +106,8 @@ function SidebarTab2() {
|
||||
const formatTimes = times.map((time) => ({
|
||||
value: format(time, "HH:mm"),
|
||||
active:
|
||||
isAfter(time, addMinutes(new Date(), 30)) &&
|
||||
// isAfter(time, addMinutes(new Date(), 30)) &&
|
||||
isAfter(time, new Date()) &&
|
||||
scheduledSessions.filter(
|
||||
(scheduledSession) => scheduledSession.startAt === time.toISOString()
|
||||
).length < build.sessionLimit,
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
function RotateDeviceIcon() {
|
||||
return (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
width="64"
|
||||
height="64"
|
||||
x="0"
|
||||
y="0"
|
||||
viewBox="0 0 96 96"
|
||||
>
|
||||
<g>
|
||||
<path
|
||||
d="M21.134 18.719c0-.989-.802-1.791-1.791-1.791h-2.388a1.791 1.791 0 0 0 0 3.582h2.388a1.79 1.79 0 0 0 1.791-1.791z"
|
||||
fill="currentColor"
|
||||
></path>
|
||||
<path
|
||||
d="M80.417 48.246H45.015V16.212c0-4.097-2.307-6.448-6.329-6.448H15.308C10.937 9.764 8 12.355 8 16.212v49.529c0 4.03 3.278 7.306 7.308 7.306h8.268v5.877c0 4.032 3.28 7.311 7.311 7.311h49.53a7.318 7.318 0 0 0 7.311-7.311V55.557c0-4.032-3.28-7.311-7.311-7.311zm-65.109 21.22a3.73 3.73 0 0 1-3.726-3.724v-49.53c0-2.659 2.852-2.866 3.726-2.866h23.379c2.002 0 2.747.777 2.747 2.866v32.034H30.887c-4.031 0-7.311 3.279-7.311 7.311v4.356h-1.845a1.791 1.791 0 0 0 0 3.582h1.845v5.97h-8.268zm68.838 9.459a3.733 3.733 0 0 1-3.729 3.729h-49.53a3.732 3.732 0 0 1-3.728-3.729V55.557a3.733 3.733 0 0 1 3.728-3.729h49.53a3.733 3.733 0 0 1 3.729 3.729z"
|
||||
fill="currentColor"
|
||||
></path>
|
||||
<path
|
||||
d="M79.045 55.137c-.989 0-1.791.802-1.791 1.791v2.388a1.791 1.791 0 0 0 3.582 0v-2.388c0-.988-.802-1.791-1.791-1.791zM34.751 59.934c-.989 0-1.791.802-1.791 1.791v8.643a1.791 1.791 0 0 0 3.582 0v-8.643c0-.988-.802-1.791-1.791-1.791zM85.062 33.141l-4.777 3.981v-7.747c0-9.512-7.711-17.222-17.222-17.222h-10.19c-.892 0-1.719.609-1.863 1.49a1.793 1.793 0 0 0 1.766 2.093h10.287c7.533 0 13.639 6.106 13.639 13.639v7.748l-4.778-3.981a1.79 1.79 0 0 0-2.698.477c-.452.768-.207 1.765.478 2.336l7.508 6.257a2 2 0 0 0 2.561 0l7.581-6.319a1.792 1.792 0 0 0-2.292-2.752z"
|
||||
fill="currentColor"
|
||||
></path>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export default RotateDeviceIcon;
|
||||
Reference in New Issue
Block a user