Skip to content

Commit daa9d09

Browse files
author
manasa
committed
fixed few style issues while adoption testing
1 parent aa74c9b commit daa9d09

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/react-sdk-components/src/components/infra/DashboardFilter/DashboardFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface DashboardFilterProps extends PConnProps {
1919
}
2020

2121
export default function DashboardFilter(props: PropsWithChildren<DashboardFilterProps>) {
22-
const { children = [], name, filterProp, type = '', metadata = null, getPConnect } = props;
22+
const { children, name, filterProp, type = '', metadata = null, getPConnect } = props;
2323
const { current: filterId } = useRef(uuidv4());
2424

2525
const [startDate, setStartDate] = useState(null);

packages/react-sdk-components/src/components/infra/DashboardFilter/filterUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const buildFilterComponents = (getPConnect, allFilters) => {
7777
const filterComponents = allFilters.children.map((filter, index) => createFilterComponent(getPConnect, filter, index));
7878
if (filterComponents && filterComponents.length > 0) {
7979
filterComponents.push(
80-
<Grid>
80+
<Grid style={{display: 'flex', alignItems: 'center'}}>
8181
<Link
8282
style={{ cursor: 'pointer' }}
8383
onClick={() => {

packages/react-sdk-components/src/components/widget/FileUtility/FileUtility/FileUtility.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export default function FileUtility(props: FileUtilityProps) {
512512
>
513513
<MoreVertIcon />
514514
</IconButton>
515-
<Menu style={{ marginTop: '3rem' }} id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
515+
<Menu id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
516516
<MenuItem style={{ fontSize: '14px' }} onClick={onAddFilesClick}>
517517
{thePConn.getLocalizedValue('Add files', '', '')}
518518
</MenuItem>{' '}

packages/react-sdk-components/src/components/widget/SummaryItem/SummaryItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function SummaryItem(props: SummaryItemProps) {
7373
>
7474
<MoreVertIcon />
7575
</IconButton>
76-
<Menu style={{ marginTop: '3rem' }} id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
76+
<Menu id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
7777
{item.actions &&
7878
item.actions.map(option => (
7979
<MenuItem style={{ fontSize: '14px' }} key={option.id || option.text} onClick={option.onClick}>

0 commit comments

Comments
 (0)