Explorar o código

Curation Route

Joystream Stats %!s(int64=3) %!d(string=hai) anos
pai
achega
f96877c7b1

+ 1 - 0
src/components/Dashboard/index.tsx

@@ -36,6 +36,7 @@ const Dashboard = (props: IProps) => {
       <div className="w-100 flex-grow-1 d-flex align-items-center justify-content-center d-flex flex-column pb-5">
         <div className="back bg-warning d-flex flex-column p-2">
           <Link to={`/calendar`}>Calendar</Link>
+	  <Link to={`/curation`}>Curation</Link>
           <Link to={`/timeline`}>Timeline</Link>
           <Link to={`/tokenomics`}>Reports</Link>
           <Link to={`/validators`}>Validators</Link>

+ 5 - 0
src/components/Routes/index.tsx

@@ -2,6 +2,7 @@ import { Switch, Route } from "react-router-dom";
 import {
   Calendar,
   Councils,
+  Curation,
   Dashboard,
   Forum,
   Member,
@@ -50,6 +51,10 @@ const Routes = (props: IProps) => {
         path="/councils"
         render={(routeprops) => <Councils {...routeprops} {...props} />}
       />
+      <Route
+        path="/curation"
+        render={(routeprops) => <Curation {...routeprops} {...props} />}
+      />
       <Route
         path="/forum/threads/:thread"
         render={(routeprops) => <Forum {...routeprops} {...props} />}

+ 2 - 1
src/components/index.ts

@@ -2,7 +2,8 @@ export { default as Back } from "./Back";
 export { default as Calendar } from "./Calendar";
 export { default as Routes } from "./Routes";
 export { default as Council } from "./Council";
-export { default as Councils } from "./Councils";
+export { default as Councils } from "./Councils"
+export { default as Curation } from "./Curation";
 export { default as Dashboard } from "./Dashboard";
 export { default as Forum } from "./Forum";
 export { default as Mint } from "./Mint";

+ 1 - 0
src/config.ts

@@ -2,3 +2,4 @@ export const domain = "https://testnet.joystream.org";
 export const wsLocation = "wss://joystreamstats.live:9945";
 export const apiLocation = "https://api.joystreamstats.live/api/v1"
 export const socketLocation = "/socket.io"
+export const hydraLocation = "https://hydra.joystream.org/graphql"