-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#391] Create VisualCardWrapper component
- Loading branch information
1 parent
b36db59
commit aceb28f
Showing
5 changed files
with
85 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from "react"; | ||
import { Row, Col, Card, Space, Button } from "antd"; | ||
import { InfoCircleOutlined } from "@ant-design/icons"; | ||
|
||
const VisualCardWrapper = ({ children, title }) => { | ||
return ( | ||
<Card | ||
className="visual-card-wrapper" | ||
title={ | ||
<Row align="middle" gutter={[8, 8]}> | ||
<Col span={19}> | ||
<Space align="center"> | ||
<div className="title">{title}</div> | ||
<div> | ||
<InfoCircleOutlined /> | ||
</div> | ||
</Space> | ||
</Col> | ||
<Col span={5} align="end"> | ||
<Button size="small" className="button-export"> | ||
Export | ||
</Button> | ||
</Col> | ||
</Row> | ||
} | ||
> | ||
{children} | ||
</Card> | ||
); | ||
}; | ||
|
||
export default VisualCardWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
export { default as AreaUnitFields } from "./AreaUnitFields"; | ||
// export { default as SideMenu } from "./SideMenu"; | ||
// export { default as CaseProfile } from "./CaseProfile"; | ||
// export { default as DataFields } from "./DataFields"; | ||
// export { default as IncomeDriverDataEntry } from "./IncomeDriverDataEntry"; | ||
// export { default as IncomeDriverForm } from "./IncomeDriverForm"; | ||
// export { default as IncomeDriverTarget } from "./IncomeDriverTarget"; | ||
// export { default as IncomeDriverDashboard } from "./IncomeDriverDashboard"; | ||
// export { default as DashboardIncomeOverview } from "./DashboardIncomeOverview"; | ||
// export { default as DashboardSensitivityAnalysis } from "./DashboardSensitivityAnalysis"; | ||
// export { default as DashboardScenarioModeling } from "./DashboardScenarioModeling"; | ||
// export { default as Questions } from "./Questions"; | ||
// export { default as Scenario } from "./Scenario"; | ||
export { default as DebounceSelect } from "./DebounceSelect"; | ||
export { default as CaseFilter } from "./CaseFilter"; | ||
export { default as CaseSettings } from "./CaseSettings"; | ||
export { default as SegmentForm } from "./SegmentForm"; | ||
export { default as CaseForm } from "./CaseForm"; | ||
export { default as EnterIncomeDataVisual } from "./EnterIncomeDataVisual"; | ||
export { default as EnterIncomeDataForm } from "./EnterIncomeDataForm"; | ||
export { default as VisualCardWrapper } from "./VisualCardWrapper"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters