Skip to content
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

Merged
merged 18 commits into from
Feb 22, 2024
Merged

Refactor museum #431

merged 18 commits into from
Feb 22, 2024

Conversation

kartikpaliwal
Copy link
Member

No description provided.

@@ -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 {
Copy link
Contributor

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 = {
Copy link

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 = {
Copy link

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.

Copy link

codeclimate bot commented Feb 22, 2024

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.

@fsimonjetz fsimonjetz merged commit 61b7a1b into master Feb 22, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants