fix: remove Datasets tab when not logged in
This commit is contained in:
@@ -95,13 +95,13 @@ const AppLayout = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style={styles.controlsWrapped}>
|
<div style={styles.controlsWrapped}>
|
||||||
<button
|
{isSignedIn && <button
|
||||||
type="button"
|
type="button"
|
||||||
style={location.pathname === "/datasets" ? styles.buttonPrimary : styles.buttonSecondary}
|
style={location.pathname === "/datasets" ? styles.buttonPrimary : styles.buttonSecondary}
|
||||||
onClick={() => navigate("/datasets")}
|
onClick={() => navigate("/datasets")}
|
||||||
>
|
>
|
||||||
My datasets
|
My datasets
|
||||||
</button>
|
</button>}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user