Skip to content

Commit

Permalink
feat: UI improvements
Browse files Browse the repository at this point in the history
- Minor fix for Back to My Records button
- Decrease font size for the Questions about Learner Records title
  • Loading branch information
Lunyachek committed Apr 3, 2024
1 parent 323ea5d commit 1802de1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
27 changes: 11 additions & 16 deletions src/components/ProgramRecord/ProgramRecord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import { useParams } from 'react-router-dom';

import {
Info, ArrowBack,
Info, ChevronLeft

Check failure on line 8 in src/components/ProgramRecord/ProgramRecord.jsx

View workflow job for this annotation

GitHub Actions / tests

Missing trailing comma
} from '@openedx/paragon/icons';
import {
Alert, Container, Button, Hyperlink,

Check failure on line 11 in src/components/ProgramRecord/ProgramRecord.jsx

View workflow job for this annotation

GitHub Actions / tests

'Button' is defined but never used
Expand Down Expand Up @@ -76,22 +76,17 @@ function ProgramRecord({ isPublic }) {
};

const renderBackButton = () => (
<Button
variant="tertiary"
iconBefore={ArrowBack}
className="back-to-records"
<Hyperlink
destination={createCorrectInternalRoute('/')}
variant="muted"
>
<Hyperlink
destination={createCorrectInternalRoute('/')}
variant="muted"
>
<FormattedMessage
id="link.back.to.records"
defaultMessage="Back to My Records"
description="A link that takes the user back to their program records"
/>
</Hyperlink>
</Button>
<ChevronLeft />
<FormattedMessage
id="link.back.to.records"
defaultMessage="Back to My Records"
description="A link that takes the user back to their program records"
/>
</Hyperlink>
);

const renderProgramDetails = () => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProgramRecord/RecordsHelp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { Hyperlink } from '@openedx/paragon';
function RecordsHelp({ helpUrl }) {
return (
<section className="help">
<h2>
<h3 className="h5">
<FormattedMessage
id="help.section.header"
defaultMessage="Questions about Learner Records?"
description="A header for the help section"
/>
</h2>
</h3>
<p>
<FormattedMessage
id="help.section.content.with.link"
Expand Down

0 comments on commit 1802de1

Please sign in to comment.