Unverified Commit 4f6af961 authored by Jyothish's avatar Jyothish Committed by GitHub

Remove entity type indicator (#357)

parent a1c40c90
Pipeline #101762 passed with stages
in 10 minutes and 39 seconds
......@@ -3,6 +3,3 @@
align-items: center;
}
.entityTypeIndicatorWrapper {
margin-left: auto;
}
......@@ -17,7 +17,6 @@
import React from 'react';
import { useQuery, gql } from '@apollo/client';
import EntityTypeIndicator from 'src/shared/components/entity-type-indicator/EntityTypeIndicator';
import { GeneSummaryStrip } from 'src/shared/components/feature-summary-strip';
import { Slice } from 'src/content/app/entity-viewer/types/slice';
......@@ -71,10 +70,6 @@ export const EntityViewerTopbar = (props: EntityViewerTopbarProps) => {
{data ? (
<GeneSummaryStrip gene={geneToEnsObjectFields(data.gene)} />
) : null}
<div className={styles.entityTypeIndicatorWrapper}>
<EntityTypeIndicator entity={'Gene'} />
</div>
</div>
);
};
......
@import 'src/styles/common';
.indicator {
border-radius: 30px;
height: 21px;
padding: 1px 16px 0;
margin-right: 24px;
background-color: $black;
color: $white;
text-align: center;
}
/**
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import styles from './EntityTypeIndicator.scss';
type EntityTypeIndicatorProps = {
entity: string;
};
const EntityTypeIndicator = (props: EntityTypeIndicatorProps) => (
<div className={styles.indicator}>{props.entity}</div>
);
export default EntityTypeIndicator;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment