🚸 Add better page titles and dashboard icons

Closes #231
This commit is contained in:
Baptiste Arnaud
2023-01-26 17:04:37 +01:00
parent 9aab6ddb2c
commit ee864d9729
10 changed files with 25 additions and 26 deletions

View File

@@ -1,13 +1,13 @@
import React from 'react'
import { HStack, Flex, Button, useDisclosure } from '@chakra-ui/react'
import { SettingsIcon } from '@/components/icons'
import { HardDriveIcon, SettingsIcon } from '@/components/icons'
import { signOut } from 'next-auth/react'
import { useUser } from '@/features/account'
import { useWorkspace, WorkspaceDropdown } from '@/features/workspace'
import { isNotDefined } from 'utils'
import Link from 'next/link'
import { TypebotLogo } from '@/components/TypebotLogo'
import { WorkspaceSettingsModal } from '@/features/workspace'
import { EmojiOrImageIcon } from '@/components/EmojiOrImageIcon'
export const DashboardHeader = () => {
const { user } = useUser()
@@ -32,7 +32,11 @@ export const DashboardHeader = () => {
flex="1"
>
<Link href="/typebots" data-testid="typebot-logo">
<TypebotLogo w="30px" />
<EmojiOrImageIcon
boxSize="30px"
icon={workspace?.icon}
defaultIcon={HardDriveIcon}
/>
</Link>
<HStack>
{user && workspace && (

View File

@@ -35,7 +35,7 @@ export const DashboardPage = () => {
return (
<Stack minH="100vh">
<Seo title="My typebots" />
<Seo title={workspace?.name ?? 'My typebots'} />
<DashboardHeader />
<TypebotDndProvider>
{isLoading ? (