Changed error handling for expired tokens. Changed document upload component. Adjusted express server order.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import React, { useEffect } from "react";
|
||||
import { useQuery } from "@apollo/react-hooks";
|
||||
import SpinComponent from "../../components/loading-spinner/loading-spinner.component";
|
||||
import AlertComponent from "../../components/alert/alert.component";
|
||||
@@ -26,7 +26,7 @@ function JobsDetailPage({ match, location }) {
|
||||
});
|
||||
}, [loading, data, t]);
|
||||
|
||||
const [selectedTab, setSelectedTab] = useState(hash ? hash : "#lines");
|
||||
//const [selectedTab, setSelectedTab] = useState(hash ? hash : "#lines");
|
||||
if (loading) return <SpinComponent />;
|
||||
if (error) return <AlertComponent message={error.message} type='error' />;
|
||||
return (
|
||||
@@ -35,7 +35,7 @@ function JobsDetailPage({ match, location }) {
|
||||
<JobTombstone job={data.jobs_by_pk} />
|
||||
</Row>
|
||||
<Row>
|
||||
<Tabs defaultActiveKey={selectedTab}>
|
||||
<Tabs defaultActiveKey={hash ? hash : "#lines"}>
|
||||
<Tabs.TabPane
|
||||
tab={
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user