* Override unwanted changes Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br> Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> * Fix the tests Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br> Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br> Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
22 lines
526 B
TypeScript
22 lines
526 B
TypeScript
import { useRecoilValue } from 'recoil';
|
|
|
|
import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState';
|
|
|
|
import { RightDrawerActivity } from '../RightDrawerActivity';
|
|
|
|
export function RightDrawerCreateActivity() {
|
|
const viewableActivityId = useRecoilValue(viewableActivityIdState);
|
|
|
|
return (
|
|
<>
|
|
{viewableActivityId && (
|
|
<RightDrawerActivity
|
|
activityId={viewableActivityId}
|
|
showComment={false}
|
|
autoFillTitle={true}
|
|
/>
|
|
)}
|
|
</>
|
|
);
|
|
}
|