Skip to content

Release cleanup#1601

Merged
mariahosfeld merged 3 commits into
developfrom
feature/release-cleanup-2-nov-22
Nov 2, 2022
Merged

Release cleanup#1601
mariahosfeld merged 3 commits into
developfrom
feature/release-cleanup-2-nov-22

Conversation

@mohitb35

@mohitb35 mohitb35 commented Nov 2, 2022

Copy link
Copy Markdown
Member

Minor cleanup for release of 2nd Nov 22

  • remove export/import of namespace Treemapper
  • remove TS errors due to unused variables
  • refactor render code for Details to remove TS error and explicitly return type ReactElement or null

> as namespaces do not need to exported/imported
- due to unused state variable `open`
- unused context parameter `selectedSite`
- explicitly define return types for functional component `Details`
- component was implicitly returning `JSX.Element` or `false`
- refactor code to return `ReactElement` | `null`
@vercel

vercel Bot commented Nov 2, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
planet-webapp ✅ Ready (Inspect) Visit Preview Nov 2, 2022 at 1:47PM (UTC)

@sagararyal

Copy link
Copy Markdown
Member

@Shreyaschorge Shreyaschorge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Jst a minor change. Though it wont affect anything so I am approving it.

Comment thread pages/[p].tsx
const [internalCurrencyCode, setInternalCurrencyCode] = React.useState('');
const [internalLanguage, setInternalLanguage] = React.useState('');
const [open, setOpen] = React.useState(false);
const [_open, setOpen] = React.useState(false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If _open is not being used then it can be removed

@mariahosfeld mariahosfeld merged commit d852d6c into develop Nov 2, 2022
@mariahosfeld mariahosfeld deleted the feature/release-cleanup-2-nov-22 branch November 2, 2022 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants