Add UI for instructors to create a new course

This commit is contained in:
2020-01-15 05:12:00 +00:00
parent a0489be82d
commit 9b27c41433
8 changed files with 388 additions and 21 deletions
+1
View File
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
import { Table } from 'semantic-ui-react';
export const isAdmin = (user) => user.is_staff || user.member.is_director || user.member.is_staff;
export const isInstructor = (user) => isAdmin(user) || user.member.is_staff;
export const siteUrl = window.location.protocol + '//' + window.location.hostname;
export const apiUrl = window.location.protocol + '//api.' + window.location.hostname;