feat: fetch user from context

This commit is contained in:
Rohit
2025-06-12 23:49:51 +05:30
parent a73ffcb893
commit 978187c4f0

View File

@@ -51,6 +51,9 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
const { notify, setRerenderRuns, setRecordingId } = useGlobalInfoStore();
const navigate = useNavigate();
const { state } = useContext(AuthContext);
const { user } = state;
const abortRunHandler = (runId: string, robotName: string, browserId: string) => {
notify('info', t('main_page.notifications.abort_initiated', { name: robotName }));