From a68b33d9800a2b032c8ef7529b9cc8e29665ea5e Mon Sep 17 00:00:00 2001 From: ameer2468 <33054370+ameer2468@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:15:57 +0300 Subject: [PATCH] [ENG-1145] Keep more info open if it is (#1392) * Keep more info open if it is * toggle off when closing inspector * Update TopBarOptions.tsx * tweak code * Update Accordion.tsx --------- Co-authored-by: jake <77554505+brxken128@users.noreply.github.com> --- .../Explorer/Inspector/MediaData.tsx | 9 ++++++++- .../$libraryId/Explorer/Inspector/index.tsx | 9 +++++++-- .../app/$libraryId/Explorer/TopBarOptions.tsx | 4 +++- interface/app/$libraryId/Explorer/store.ts | 1 + interface/components/Accordion.tsx | 18 +++++++++++++----- 5 files changed, 32 insertions(+), 9 deletions(-) diff --git a/interface/app/$libraryId/Explorer/Inspector/MediaData.tsx b/interface/app/$libraryId/Explorer/Inspector/MediaData.tsx index 2cf7f758c..cdff91774 100644 --- a/interface/app/$libraryId/Explorer/Inspector/MediaData.tsx +++ b/interface/app/$libraryId/Explorer/Inspector/MediaData.tsx @@ -8,6 +8,7 @@ import { import Accordion from '~/components/Accordion'; import { Platform, usePlatform } from '~/util/Platform'; +import { getExplorerStore, useExplorerStore } from '../store'; import { MetaData } from './index'; interface Props { @@ -84,10 +85,16 @@ const orientations = { const MediaData = ({ data }: Props) => { const platform = usePlatform(); const coordinatesFormat = useUnitFormatStore().coordinatesFormat; + const explorerStore = useExplorerStore(); return data.type === 'Image' ? (
{props.title}