+
+
{uri}
} />
);
-}
\ No newline at end of file
+}
diff --git a/src/views/objects/ObjectView/Tools/AddCondition.js b/src/views/objects/ObjectView/Tools/AddCondition.js
deleted file mode 100644
index bcaf96de..00000000
--- a/src/views/objects/ObjectView/Tools/AddCondition.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import React from 'react';
-import Button from '@material-ui/core/Button';
-import { makeStyles } from '@material-ui/core/styles';
-import AddIcon from '@material-ui/icons/Add';
-
-const useStyles = makeStyles((theme) => ({
- button: {
- margin: theme.spacing(1),
- },
-}));
-
-export default function AddCondition() {
- const classes = useStyles();
-
- return (
-
- }
- >
- Add Condition
-
-
- );
-}
diff --git a/src/views/objects/ObjectView/Tools/LogicField.js b/src/views/objects/ObjectView/Tools/LogicField.js
deleted file mode 100644
index 163eea99..00000000
--- a/src/views/objects/ObjectView/Tools/LogicField.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
-import InputLabel from '@material-ui/core/InputLabel';
-import MenuItem from '@material-ui/core/MenuItem';
-import FormHelperText from '@material-ui/core/FormHelperText';
-import FormControl from '@material-ui/core/FormControl';
-import Select from '@material-ui/core/Select';
-
-const useStyles = makeStyles((theme) => ({
- formControl: {
- margin: theme.spacing(1),
- marginLeft: '0',
- marginRight: '0',
- minWidth: 90,
- },
- selectEmpty: {
- marginTop: theme.spacing(2),
- },
-}));
-
-export default function LogicField() {
- const classes = useStyles();
- const [age, setAge] = React.useState('');
-
- const handleChange = (event) => {
- setAge(event.target.value);
- };
-
- return (
-
-
- Operator
-
-
-
- );
-}
diff --git a/src/views/objects/ObjectView/Tools/RegexBox.js b/src/views/objects/ObjectView/Tools/RegexBox.js
deleted file mode 100644
index 2258b89d..00000000
--- a/src/views/objects/ObjectView/Tools/RegexBox.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import React from 'react';
-import FormGroup from '@material-ui/core/FormGroup';
-import FormControlLabel from '@material-ui/core/FormControlLabel';
-import Checkbox from '@material-ui/core/Checkbox';
-
-export default function RegexBox() {
- const [state, setState] = React.useState({
- checkedB: true
- });
-
- const handleChange = (event) => {
- setState({ ...state, [event.target.name]: event.target.checked });
- };
-
- return (
-
-
- }
- label="REGEX"
- />
-
- );
-}
diff --git a/src/views/objects/ObjectView/Tools/SearchField.js b/src/views/objects/ObjectView/Tools/SearchField.js
deleted file mode 100644
index 7d441b7e..00000000
--- a/src/views/objects/ObjectView/Tools/SearchField.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
-import TextField from '@material-ui/core/TextField';
-
-const useStyles = makeStyles((theme) => ({
- root: {
- '& > *': {
- margin: theme.spacing(1),
- marginLeft: '0',
- marginRight: '0'
- },
- },
-}));
-
-export default function SearchField() {
- const classes = useStyles();
-
- return (
-
- );
-}
\ No newline at end of file
diff --git a/src/views/objects/ObjectView/index.js b/src/views/objects/ObjectView/index.js
index 4339c041..ddb742e6 100644
--- a/src/views/objects/ObjectView/index.js
+++ b/src/views/objects/ObjectView/index.js
@@ -1,22 +1,27 @@
// src/views/objects/ObjectView/index.js
-import React from 'react';
-
-// Tools
+import React, { useContext } from 'react';
+import { FetchContext } from 'src/App';
import Tools from './Tools';
-
-// Views
import Views from './Views';
-
// This is the parent for the object views.
// The state model is based on https://reactjs.org/docs/lifting-state-up.html
export default function ObjectView() {
+ const fc = useContext(FetchContext);
// Split to get a real URI, then ask for the object.
return (
-
-
-
-
+ (fc.isLoggedIn === false)
+ ? (
+
+
+
+ )
+ : (
+
+
+
+
+ )
);
}