-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor museum #431
Refactor museum #431
Conversation
@@ -22,8 +22,13 @@ function Collection({ fragment: { collection } }: Props): JSX.Element { | |||
return <>{collection && `(${collection} Collection)`}</> | |||
} | |||
|
|||
function MuseumName({ fragment: { museum } }: Props): JSX.Element { | |||
return museum.hasUrl ? ( | |||
interface MuseumNameProps { |
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.
I think the only change needed here is to replace .hasUrl
with .url
.
import { Fragment } from './fragment' | ||
import bmLogo from './The_British_Museum.png' | ||
import ybcLogo from './YBC_small.jpg' | ||
export const Museums = { |
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.
File museum.ts
has 296 lines of code (exceeds 250 allowed). Consider refactoring.
import { Fragment } from './fragment' | ||
import bmLogo from './The_British_Museum.png' | ||
import ybcLogo from './YBC_small.jpg' | ||
export const Museums = { |
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.
File museum.ts
has 254 lines of code (exceeds 250 allowed). Consider refactoring.
Code Climate has analyzed commit 8474677 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (75% is the threshold). This pull request will bring the total coverage in the repository to 91.0% (0.0% change). View more on Code Climate. |
No description provided.