refactor(workspace): standardize component props to use workspaceId

- Updated component props across multiple files to replace searchSpaceId with workspaceId for consistency.
- Adjusted internal logic to maintain functionality while aligning with the new terminology.
This commit is contained in:
Anish Sarkar 2026-07-06 10:16:21 +05:30
parent ec617c1c6b
commit 3719037c16
13 changed files with 34 additions and 28 deletions

View file

@ -60,7 +60,8 @@ function EmptyState() {
);
}
export function ArtifactsLibrary({ searchSpaceId }: { searchSpaceId: number }) {
export function ArtifactsLibrary({ workspaceId }: { workspaceId: number }) {
const searchSpaceId = workspaceId;
const { artifacts, loading, error, refresh } = useLibraryArtifacts(searchSpaceId);
const openReportPanel = useSetAtom(openReportPanelAtom);
const [selectedMedia, setSelectedMedia] = useState<LibraryArtifact | null>(null);