* Wip refactoring view * Post merge conflicts * Fix review * Add create view capability * Fix create object missing view * Fix tests
18 lines
449 B
TypeScript
18 lines
449 B
TypeScript
import { useRecoilValue } from 'recoil';
|
|
|
|
import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState';
|
|
|
|
import { RightDrawerActivity } from '../RightDrawerActivity';
|
|
|
|
export const RightDrawerEditActivity = () => {
|
|
const viewableActivityId = useRecoilValue(viewableActivityIdState);
|
|
|
|
return (
|
|
<>
|
|
{viewableActivityId && (
|
|
<RightDrawerActivity activityId={viewableActivityId} />
|
|
)}
|
|
</>
|
|
);
|
|
};
|