Working Changes
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Drawer } from "antd";
|
|
||||||
export default function ChatWindowComponent({ ...drawerProps }) {
|
export default function ChatWindowComponent({ toggleChatVisible }) {
|
||||||
return <Drawer {...drawerProps}>Chat Windows and more</Drawer>;
|
return (
|
||||||
|
<div style={{ height: "300px" }}>
|
||||||
|
<button onClick={() => toggleChatVisible()}>hide</button> This is a chat
|
||||||
|
window!
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { Layout } from "antd";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
@@ -18,17 +17,8 @@ export default connect(
|
|||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
mapDispatchToProps
|
mapDispatchToProps
|
||||||
)(function ChatWindowContainer({ chatVisible, toggleChatVisible }) {
|
)(function ChatWindowContainer({ chatVisible, toggleChatVisible }) {
|
||||||
return (
|
if (chatVisible)
|
||||||
<Layout.Sider
|
return <ChatWindowComponent toggleChatVisible={toggleChatVisible} />;
|
||||||
collapsible
|
|
||||||
defaultCollapsed
|
return <div onClick={() => toggleChatVisible()}>Chat</div>;
|
||||||
theme="light"
|
|
||||||
collapsedWidth={0}
|
|
||||||
width={300}
|
|
||||||
collapsed={!chatVisible}
|
|
||||||
onCollapse={(collapsed, type) => toggleChatVisible()}
|
|
||||||
>
|
|
||||||
<ChatWindowComponent mask={false} maskClosable={false} zIndex={0} />
|
|
||||||
</Layout.Sider>
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,12 +5,14 @@ import UnfoldedCar from "../../assets/unfolded_car.svg";
|
|||||||
|
|
||||||
export default function JobDetailCardsDamageComponent({ loading, data }) {
|
export default function JobDetailCardsDamageComponent({ loading, data }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
console.log("data", data);
|
||||||
|
const { area_of_damage } = data;
|
||||||
|
console.log("area_of_damage", area_of_damage);
|
||||||
return (
|
return (
|
||||||
<CardTemplate loading={loading} title={t("jobs.labels.cards.damage")}>
|
<CardTemplate loading={loading} title={t("jobs.labels.cards.damage")}>
|
||||||
{data ? (
|
{data ? (
|
||||||
<span>
|
<span>
|
||||||
<img src={UnfoldedCar} alt='Damaged Area' width={200} height={200} />
|
<img src={UnfoldedCar} alt="Damaged Area" width={200} height={200} />
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
</CardTemplate>
|
</CardTemplate>
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
|
|||||||
est_ct_ln
|
est_ct_ln
|
||||||
clm_no
|
clm_no
|
||||||
status
|
status
|
||||||
|
area_of_damage
|
||||||
ro_number
|
ro_number
|
||||||
scheduled_completion
|
scheduled_completion
|
||||||
scheduled_in
|
scheduled_in
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ export default function Manage({ match }) {
|
|||||||
<HeaderContainer />
|
<HeaderContainer />
|
||||||
</Header>
|
</Header>
|
||||||
<Layout>
|
<Layout>
|
||||||
<ChatWindowContainer />
|
|
||||||
|
|
||||||
<Content
|
<Content
|
||||||
className="content-container"
|
className="content-container"
|
||||||
style={{ padding: "0em 4em 4em" }}
|
style={{ padding: "0em 4em 4em" }}
|
||||||
@@ -126,6 +124,12 @@ export default function Manage({ match }) {
|
|||||||
</Layout>
|
</Layout>
|
||||||
<Footer>
|
<Footer>
|
||||||
<FooterComponent />
|
<FooterComponent />
|
||||||
|
{
|
||||||
|
// <Affix offsetBottom={20}>
|
||||||
|
// <ChatWindowContainer />
|
||||||
|
// </Affix>
|
||||||
|
}
|
||||||
|
<ChatWindowContainer />
|
||||||
</Footer>
|
</Footer>
|
||||||
<BackTop />
|
<BackTop />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
1436
client/yarn.lock
1436
client/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user