Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admin page of sbol explorer #678

Merged
merged 10 commits into from
Jun 12, 2024
6 changes: 5 additions & 1 deletion frontend/components/Admin/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ import Sparql from './Sparql';
import Status from './Status';
import Theme from './Theme';
import Users from './Users';
import Explorer from './Explorer';

export default function Content(properties) {
const [content, setContent] = useState(properties.selected);

console.log("test: ", properties.selected)
useEffect(() => {
switch (properties.selected) {
case 'graphs':
Expand Down Expand Up @@ -44,6 +45,9 @@ export default function Content(properties) {
case 'theme':
setContent(<Theme />);
break;
case 'explorer':
setContent(<Explorer />);
break;
default:
setContent(<Status />);
break;
Expand Down
Loading
Loading