diff --git a/.vscode/settings.json b/.vscode/settings.json index 451d01af..4bb9b697 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,9 +5,5 @@ "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, - "eslint.run": "onSave", - "workbench.colorCustomizations": { - "titleBar.activeBackground": "#292929", - "titleBar.inactiveBackground": "#888888" - } + "eslint.run": "onSave" } diff --git a/components/ImageUploader.tsx b/components/ImageUploader.tsx index 6ed211e6..111d0f2a 100644 --- a/components/ImageUploader.tsx +++ b/components/ImageUploader.tsx @@ -110,7 +110,7 @@ export default function ImageUploader({ (opened) => !opened && setFile(null) // unset file on close }> -
+
diff --git a/components/Shell.tsx b/components/Shell.tsx index 13461bc2..7f96b648 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -1,6 +1,7 @@ import { SelectorIcon } from "@heroicons/react/outline"; import { CalendarIcon, + ArrowLeftIcon, ClockIcon, CogIcon, ExternalLinkIcon, @@ -36,6 +37,7 @@ import Dropdown, { import { useViewerI18n } from "./I18nLanguageHandler"; import Logo from "./Logo"; +import Button from "./ui/Button"; function useMeQuery() { const meQuery = trpc.useQuery(["viewer.me"], { @@ -118,6 +120,10 @@ export default function Shell(props: { subtitle?: ReactNode; children: ReactNode; CTA?: ReactNode; + HeadingLeftIcon?: ReactNode; + showBackButton?: boolean; + // use when content needs to expand with flex + flexChildrenContainer?: boolean; }) { const { t } = useLocale(); const router = useRouter(); @@ -249,7 +255,11 @@ export default function Shell(props: {
-
+
{/* show top navigation for md and smaller (tablet and phones) */}
-
+
+ {props.showBackButton && ( +
+ +
+ )}
+ {props.HeadingLeftIcon &&
{props.HeadingLeftIcon}
}

{props.heading} @@ -279,7 +302,13 @@ export default function Shell(props: {

{props.CTA}
-
{props.children}
+
+ {props.children} +
{/* show bottom navigation for md and smaller (tablet and phones) */}