Skip to content

Add IMAT separate view #510

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Add IMAT separate view #510

wants to merge 2 commits into from

Conversation

Dagonite
Copy link
Collaborator

Closes #508.

Description

Adds most recent image from NDXIMAT when viewing IMAT instead of a table.

@@ -170,6 +170,24 @@ const JobTable: React.FC<{

const theme = useTheme();

if (selectedInstrument === 'IMAT') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know this is a draft, but I saw this while looking at dependabot.

I don't think we would want to render the IMAT image view in the JobTable Component. I think it would make more sense to create a new component and conditionally render the JobTable and IMATView (or whatever this is called) inside of JobsPage.tsx

i.e. conditionally here in JobsPage.tsx

      <JobTable
        selectedInstrument={selectedInstrument}
        currentPage={currentPage}
        handlePageChange={setCurrentPage}
        asUser={asUser}
      />

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah that makes sense, will update it.

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.

IMAT show most recent image instead of table
2 participants