fix(shared): Show header after linter changes
This commit is contained in:
parent
3ffb4683ed
commit
e32147a94b
1 changed files with 1 additions and 4 deletions
|
@ -3,7 +3,6 @@ import { useContext } from 'react'
|
||||||
import { useTranslation } from 'next-i18next'
|
import { useTranslation } from 'next-i18next'
|
||||||
// Context
|
// Context
|
||||||
import { ModalContext } from 'shared/context/modal-context.mjs'
|
import { ModalContext } from 'shared/context/modal-context.mjs'
|
||||||
import { LoadingContext } from 'shared/context/loading-context.mjs'
|
|
||||||
// Components
|
// Components
|
||||||
import {
|
import {
|
||||||
BeakerIcon,
|
BeakerIcon,
|
||||||
|
@ -38,7 +37,6 @@ export const NavButton = ({
|
||||||
active ? 'font-heavy' : ''
|
active ? 'font-heavy' : ''
|
||||||
}`
|
}`
|
||||||
const span = <span className="block font-bold hidden 2xl:block">{label}</span>
|
const span = <span className="block font-bold hidden 2xl:block">{label}</span>
|
||||||
console.log('in button', label, onClick)
|
|
||||||
|
|
||||||
return onClick ? (
|
return onClick ? (
|
||||||
<button {...{ onClick, className }} title={label}>
|
<button {...{ onClick, className }} title={label}>
|
||||||
|
@ -160,7 +158,6 @@ const NavIcons = ({ setModal, setView, view }) => {
|
||||||
|
|
||||||
export const WorkbenchHeader = ({ view, setView, update }) => {
|
export const WorkbenchHeader = ({ view, setView, update }) => {
|
||||||
const { setModal } = useContext(ModalContext)
|
const { setModal } = useContext(ModalContext)
|
||||||
const { loading } = useContext(LoadingContext)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header
|
<header
|
||||||
|
@ -170,7 +167,6 @@ export const WorkbenchHeader = ({ view, setView, update }) => {
|
||||||
w-full
|
w-full
|
||||||
z-30
|
z-30
|
||||||
transition-transform
|
transition-transform
|
||||||
${loading ? '' : 'fixed bottom-0 lg:top-0 left-0 translate-y-36 lg:-translate-y-36'}
|
|
||||||
drop-shadow-xl
|
drop-shadow-xl
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
|
@ -178,6 +174,7 @@ export const WorkbenchHeader = ({ view, setView, update }) => {
|
||||||
<div className="p-0 flex flex-row gap-2 justify-between text-neutral-content items-center">
|
<div className="p-0 flex flex-row gap-2 justify-between text-neutral-content items-center">
|
||||||
{/* Non-mobile content */}
|
{/* Non-mobile content */}
|
||||||
<div className="hidden lg:flex lg:px-2 flex-row items-center justify-center w-full">
|
<div className="hidden lg:flex lg:px-2 flex-row items-center justify-center w-full">
|
||||||
|
hello?
|
||||||
<NavIcons setModal={setModal} setView={setView} view={view} />
|
<NavIcons setModal={setModal} setView={setView} view={view} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue