Skip to content

Commit

Permalink
added custom styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Feb 24, 2022
1 parent 39c7da3 commit a0bff6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@
min-width: 280px;
}
}

.Body {
margin-top: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const ConsultingList: React.SFC<ConsultingListProps> = () => {
dialogMessage={dialogMessage}
dialogTitle={dialogTitle}
noItemText="consulting record"
customStyles={styles.Body}
{...queries}
{...columnAttributes}
/>
Expand Down
4 changes: 3 additions & 1 deletion src/containers/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export interface ListProps {
removeSortBy?: Array<any> | null;
noItemText?: string | null;
isDetailsPage?: boolean;
customStyles?: any;
}

interface TableVals {
Expand Down Expand Up @@ -121,6 +122,7 @@ export const List: React.SFC<ListProps> = ({
defaultSortBy,
noItemText = null,
isDetailsPage = false,
customStyles,
}: ListProps) => {
const { t } = useTranslation();
const client = useApolloClient();
Expand Down Expand Up @@ -666,7 +668,7 @@ export const List: React.SFC<ListProps> = ({
</div>
</div>

<div className={styles.Body}>
<div className={`${styles.Body} ${customStyles}`}>
{backLink}
{/* Rendering list of items */}
{itemList.length > 0 ? displayList : noItemsText}
Expand Down

0 comments on commit a0bff6d

Please sign in to comment.