Skip to content

Commit

Permalink
fix linting issues on FE
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscollins3456 committed Dec 11, 2024
1 parent ab2101a commit 40e4ccd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions datahub-web-react/src/Mocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3956,4 +3956,6 @@ export const platformPrivileges: PlatformPrivileges = {
manageGlobalAnnouncements: true,
createBusinessAttributes: true,
manageBusinessAttributes: true,
manageStructuredProperties: true,
viewStructuredPropertiesPage: true,
};
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ export class StructuredPropertyEntity implements Entity<StructuredProperty> {

renderPreview = (previewType: PreviewType, data: StructuredProperty) => (
<DefaultPreviewCard
data={null}
description={data.definition?.description || ''}
name={this.displayName(data)}
urn={data.urn}
url={`/${this.getPathName()}/${urlEncodeUrn(data.urn)}`}
logoComponent={<PreviewPropIcon />}
entityType={EntityType.StructuredProperty}
typeIcon={this.icon(14, IconStyleType.ACCENT)}
previewType={previewType}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const AllowedValuesDrawer = ({
add();
setTimeout(() => scrollToBottom(), 0);
}}
color={'violet'}
color="violet"
>
Add
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { LoadingOutlined } from '@ant-design/icons';
import { Button } from 'antd';
import React, { CSSProperties } from 'react';
import styled from 'styled-components/macro';
import { FacetFilterInput, FacetMetadata } from '@src/types.generated';
import { useEntityRegistry } from '../../useEntityRegistry';
import { SearchBar } from '../SearchBar';
import { useEnterKeyListener } from '../../shared/useEnterKeyListener';
import { FacetFilterInput, FacetMetadata } from '@src/types.generated';
import { getIsDateRangeFilter } from './utils';
import DateRangeMenu from './DateRangeMenu/DateRangeMenu';

Expand Down
4 changes: 2 additions & 2 deletions datahub-web-react/src/app/search/filters/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
TagOutlined,
UserOutlined,
} from '@ant-design/icons';
import { removeMarkdown } from '@src/app/entity/shared/components/styled/StripMarkdownText';
import { DATE_TYPE_URN } from '@src/app/shared/constants';
import React, { useLayoutEffect, useState } from 'react';
import styled from 'styled-components';
import {
Expand Down Expand Up @@ -50,8 +52,6 @@ import { GetAutoCompleteMultipleResultsQuery } from '../../../graphql/search.gen
import { FACETS_TO_ENTITY_TYPES } from './constants';
import { FilterOptionType } from './types';
import { capitalizeFirstLetterOnly } from '../../shared/textUtil';
import { removeMarkdown } from '@src/app/entity/shared/components/styled/StripMarkdownText';
import { DATE_TYPE_URN } from '@src/app/shared/constants';

// either adds or removes selectedFilterValues to/from activeFilters for a given filterField
export function getNewFilters(filterField: string, activeFilters: FacetFilterInput[], selectedFilterValues: string[]) {
Expand Down
2 changes: 1 addition & 1 deletion datahub-web-react/src/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ fragment entityDisplayNameFields on Entity {
}
}
... on DataPlatformInstance {
instanceId
instanceId
}
... on StructuredPropertyEntity {
definition {
Expand Down

0 comments on commit 40e4ccd

Please sign in to comment.