Skip to content

Commit

Permalink
removed the titleText for visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzgrewal committed Apr 23, 2024
1 parent e4165fe commit fb9d776
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/BarChartGrouped/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,17 @@ const BarChartGrouped = () => {
<div className="px-3">
<div className="row gy-2 pb-3">
<div className="col-md-4 p-0">
<Dropdown id="default" titleText="Select District" label={windowWidth<=1584?"District":"Filter by district"} items={items} itemToString={item => item ? item.text : ''} />
<Dropdown id="default" label={windowWidth<=1584?"District":"Filter by district"} items={items} itemToString={item => item ? item.text : ''} />
</div>
<div className="col-md-4 p-0 px-md-1">
<Dropdown id="default" titleText="Select Client Number"label={windowWidth<=1584?"Status":"Filter by status"} items={items} itemToString={item => item ? item.text : ''} />
<Dropdown id="default" label={windowWidth<=1584?"Status":"Filter by status"} items={items} itemToString={item => item ? item.text : ''} />
</div>
<div className="col-4 p-0 d-none d-md-block">
<DatePicker datePickerType="single">
<DatePickerInput
id="date-picker-input-id"
placeholder="mm/dd/yyyy"
size="md"
labelText=""
/>
</DatePicker>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/DonutChartView/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const DonutChartView = () => {
<div className="px-3">
<div className="row gy-2 pb-3">
<div className="col-md-4 p-0">
<Dropdown id="default" titleText="Select District" label={windowWidth<=1584?"District":"Filter by district"} items={items} itemToString={item => item ? item.text : ''} />
<Dropdown id="default" label={windowWidth<=1584?"District":"Filter by district"} items={items} itemToString={item => item ? item.text : ''} />
</div>
<div className="col-md-4 p-0 px-md-1">
<Dropdown id="default" titleText="Select Client Number" label={windowWidth<=1584?"Client Number":"Filter by client number"} items={items} itemToString={item => item ? item.text : ''} />
<Dropdown id="default" label={windowWidth<=1584?"Client Number":"Filter by client number"} items={items} itemToString={item => item ? item.text : ''} />
</div>
<div className="col-4 p-0 d-none d-md-block">
<DatePicker datePickerType="single">
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/components/OpeningScreenDataTable/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const buttonsCol = (
<Button
hasIconOnly
iconDescription="View"
tooltipposition="bottom"
tooltipPosition="bottom"
kind="ghost"
onClick={() => clickFn(item.id)}
renderIcon={Icons.DataViewAlt}
Expand All @@ -45,7 +45,7 @@ export const buttonsCol = (
<Button
hasIconOnly
iconDescription="Download"
tooltipposition="bottom"
tooltipPosition="bottom"
kind="ghost"
onClick={() => null}
renderIcon={Icons.Download}
Expand Down Expand Up @@ -95,7 +95,7 @@ const usePagination = (data, initialItemsPerPage) => {



export default function OpeningScreenDataTable({ rows, headers }) {
export default function OpeningScreenDataTable({ rows, headers, error }) {
const [filteredRows, setFilteredRows] = useState(rows);
const {
currentData,
Expand Down Expand Up @@ -149,7 +149,7 @@ export default function OpeningScreenDataTable({ rows, headers }) {
placeholder="Filter by opening ID, File ID, timber mark, cut block, status..."
persistent
/>
<TableToolbarMenu iconDescription="More" tooltipposition="bottom" renderIcon={Icons.OverflowMenuVertical} tabIndex={batchActionProps.shouldShowBatchActions ? -1 : 0} className="d-block d-sm-none">
<TableToolbarMenu iconDescription="More" tooltipPosition="bottom" renderIcon={Icons.OverflowMenuVertical} tabIndex={batchActionProps.shouldShowBatchActions ? -1 : 0} className="d-block d-sm-none">
<TableToolbarAction onClick={() => console.log('Download Click')} disabled={selectedRows.length === 0}>
Print
</TableToolbarAction>
Expand All @@ -167,7 +167,7 @@ export default function OpeningScreenDataTable({ rows, headers }) {
<Button
hasIconOnly
iconDescription="Download"
tooltipposition="bottom"
tooltipPosition="bottom"
kind="ghost"
onClick={() => console.log('Download Click')}
disabled={selectedRows.length === 0}
Expand All @@ -177,7 +177,7 @@ export default function OpeningScreenDataTable({ rows, headers }) {
<Button
hasIconOnly
iconDescription="Print"
tooltipposition="bottom"
tooltipPosition="bottom"
kind="ghost"
onClick={() => {
batchActionClick(selectedRows);
Expand Down Expand Up @@ -259,4 +259,4 @@ export default function OpeningScreenDataTable({ rows, headers }) {

</div>
);
}
}

0 comments on commit fb9d776

Please sign in to comment.