consolidated ismobile
This commit is contained in:
1 parent
f99cb84658
commit
e4af85cdfa
14 files changed
+100
-106
No files matched your search
@@ -26,13 +26,11 @@ export type MetadataBoxProps = AutomationManagerAuto & {
|
||||
};
|
||||
export const MetadataBox: FC<MetadataBoxProps> = (props) => {
|
||||
const isValidState = ["on", "off"].includes(props.state);
|
||||
const { isMobile } = useWindowSize();
|
||||
return (
|
||||
<div
|
||||
className={[
|
||||
"automation-manager--metadatabox",
|
||||
props.isSelected ? "selected" : "",
|
||||
isMobile ? "mobile" : "",
|
||||
props.isNew ? "new" : "",
|
||||
].join(" ")}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user