Skip to content

Commit

Permalink
Merge pull request #1307 from lpsinger/string-style-cleanup
Browse files Browse the repository at this point in the history
String style cleanup
  • Loading branch information
dakota002 authored Aug 28, 2023
2 parents 387719a + 0dbf748 commit 3735691
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/components/CircularsKeywords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function CircularsKeywords() {
<h3>Disallowed subject keywords</h3>
<ul className="grid-row usa-list usa-list--unstyled">
{emailAutoReplyChecklist.map((keyword) => (
<li key={keyword} className={'tablet:grid-col-3'}>
<li key={keyword} className="tablet:grid-col-3">
{keyword}
</li>
))}
Expand Down
8 changes: 3 additions & 5 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,23 @@ export function Footer() {
<Grid row gap>
<ContactLink
to="/contact"
icon={<Icon.Help role="presentation" size={4} color={'white'} />}
icon={<Icon.Help role="presentation" size={4} color="white" />}
headline="Questions or comments?"
>
Contact GCN directly
</ContactLink>
<ContactLink
to="https://github.com/nasa-gcn/gcn.nasa.gov/issues"
icon={
<Icon.BugReport role="presentation" size={4} color={'white'} />
<Icon.BugReport role="presentation" size={4} color="white" />
}
headline="Have you found a bug in GCN?"
>
Open an issue
</ContactLink>
<ContactLink
to="https://github.com/nasa-gcn/gcn.nasa.gov"
icon={
<Icon.Github role="presentation" size={4} color={'white'} />
}
icon={<Icon.Github role="presentation" size={4} color="white" />}
headline="Want to contribute code to GCN?"
>
Get involved on GitHub
Expand Down
2 changes: 1 addition & 1 deletion app/components/Highlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Highlight({
{filename && (
<Tooltip
position="top"
label={'Download ' + filename}
label={`Download ${filename}`}
className="margin-top-1 margin-right-1 usa-button--unstyled"
>
<a download={filename} href={`data:,${encodeURIComponent(code)}`}>
Expand Down
2 changes: 1 addition & 1 deletion app/components/NoticeTypeCheckboxes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export function NoticeTypeCheckboxes({
link:
selectedFormat !== 'json'
? NoticeTypeLinks[mission]
? '/missions/' + NoticeTypeLinks[mission]
? `/missions/${NoticeTypeLinks[mission]}`
: undefined
: JsonNoticeTypeLinks[mission],
nodes: noticeTypes.map((noticeType) => ({
Expand Down
2 changes: 1 addition & 1 deletion app/routes/circulars/circulars.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export function formatAuthor({

export function parseEventFromSubject(value: string) {
for (const [regexp, normalize] of subjectMatchers) {
const startsWithMatch = RegExp('^' + regexp.source).exec(value)
const startsWithMatch = RegExp(`^${regexp.source}`).exec(value)
if (startsWithMatch) return normalize(startsWithMatch)
}
for (const [regexp, normalize] of subjectMatchers) {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/notices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function renderTag({
<Icon.Close
role="presentation"
className="margin-left-1 text-bottom"
color={'white'}
color="white"
/>
</Button>
</span>
Expand Down

0 comments on commit 3735691

Please sign in to comment.