-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(remove-compare): add remove compare data set button #193
Conversation
…ctor to selectedLayerIdsSelector
@@ -19,6 +21,7 @@ const DataSetInfo: FunctionComponent<Props> = ({isMain}) => { | |||
<h2 className={styles.description}> | |||
{isMain ? main && main.description : compare && compare.description} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make the component easier to read you could do something like
const layer = isMain ? main : compare
and then use layer && layer.name
and layer && layer.description
in the return statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still the same 🤷♀
@@ -19,6 +21,7 @@ const DataSetInfo: FunctionComponent<Props> = ({isMain}) => { | |||
<h2 className={styles.description}> | |||
{isMain ? main && main.description : compare && compare.description} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still the same 🤷♀
closes #18