Skip to content

Commit

Permalink
fix: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Nov 16, 2023
1 parent a60bb3f commit 9dc2df9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
21 changes: 21 additions & 0 deletions src/profile/ProfilePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ ProfilePage.propTypes = {
title: PropTypes.string,
})),
visibilityCourseCertificates: PropTypes.string.isRequired,
visibilityAccomplishmentsShared: PropTypes.string,

Check failure on line 326 in src/profile/ProfilePage.jsx

View workflow job for this annotation

GitHub Actions / tests (lint)

propType "visibilityAccomplishmentsShared" is not required, but has no corresponding defaultProps declaration

// Country form data
country: PropTypes.string,
Expand All @@ -342,6 +343,25 @@ ProfilePage.propTypes = {
name: PropTypes.string,
visibilityName: PropTypes.string.isRequired,

badges: PropTypes.arrayOf(
PropTypes.shape({
badge_class: PropTypes.objectOf(
PropTypes.shape({
slug: PropTypes.string,
issuing_component: PropTypes.string,
display_name: PropTypes.string,
course_id: PropTypes.string,
description: PropTypes.string,
criteria: PropTypes.string,
image_url: PropTypes.string,
})

Check failure on line 357 in src/profile/ProfilePage.jsx

View workflow job for this annotation

GitHub Actions / tests (lint)

Missing trailing comma
),
image_url: PropTypes.string,
assertion_url: PropTypes.string,
created: PropTypes.string,
})

Check failure on line 362 in src/profile/ProfilePage.jsx

View workflow job for this annotation

GitHub Actions / tests (lint)

Missing trailing comma
),

Check failure on line 364 in src/profile/ProfilePage.jsx

View workflow job for this annotation

GitHub Actions / tests (lint)

Trailing spaces not allowed
// Social links form data
socialLinks: PropTypes.arrayOf(PropTypes.shape({
platform: PropTypes.string,
Expand Down Expand Up @@ -399,6 +419,7 @@ ProfilePage.defaultProps = {
levelOfEducation: null,
country: null,
socialLinks: [],
badges: [],
draftSocialLinksByPlatform: {},
bio: null,
learningGoal: null,
Expand Down
18 changes: 9 additions & 9 deletions src/profile/forms/Badges.jsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import React from "react";
import React from 'react';
import {
FormattedDate,
FormattedMessage,
injectIntl,
} from "@edx/frontend-platform/i18n";
import { Hyperlink } from "@edx/paragon";
import { connect } from "react-redux";
} from '@edx/frontend-platform/i18n';
import { Hyperlink } from '@edx/paragon';
import { connect } from 'react-redux';

import messages from "./Badges.messages";
import messages from './Badges.messages';

// Components
import FormControls from "./elements/FormControls";
import EditableItemHeader from "./elements/EditableItemHeader";
import SwitchContent from "./elements/SwitchContent";
import FormControls from './elements/FormControls';
import EditableItemHeader from './elements/EditableItemHeader';
import SwitchContent from './elements/SwitchContent';

// Selectors
import { badgesSelector } from "../data/selectors";
import { badgesSelector } from '../data/selectors';

class Badges extends React.Component {
constructor(props) {
Expand Down

0 comments on commit 9dc2df9

Please sign in to comment.