feat: fetch user from context
This commit is contained in:
@@ -51,6 +51,9 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
|
|||||||
const { notify, setRerenderRuns, setRecordingId } = useGlobalInfoStore();
|
const { notify, setRerenderRuns, setRecordingId } = useGlobalInfoStore();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
const { state } = useContext(AuthContext);
|
||||||
|
const { user } = state;
|
||||||
|
|
||||||
const abortRunHandler = (runId: string, robotName: string, browserId: string) => {
|
const abortRunHandler = (runId: string, robotName: string, browserId: string) => {
|
||||||
notify('info', t('main_page.notifications.abort_initiated', { name: robotName }));
|
notify('info', t('main_page.notifications.abort_initiated', { name: robotName }));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user