2
0

Add dark mode (#191)

Closes #189
This commit is contained in:
Baptiste Arnaud
2022-12-20 16:55:43 +01:00
committed by GitHub
parent 054cbb3585
commit 3394fa5e0a
77 changed files with 1782 additions and 601 deletions

View File

@ -8,6 +8,7 @@ import {
Stack,
Tag,
Text,
useColorModeValue,
} from '@chakra-ui/react'
import { WorkspaceRole } from 'db'
import React from 'react'
@ -38,9 +39,15 @@ export const MemberItem = ({
}: Props) => {
const handleAdminClick = () => onSelectNewRole(WorkspaceRole.ADMIN)
const handleMemberClick = () => onSelectNewRole(WorkspaceRole.MEMBER)
return (
<Menu placement="bottom-end" isLazy>
<MenuButton _hover={{ backgroundColor: 'gray.100' }} borderRadius="md">
<MenuButton
_hover={{
bg: useColorModeValue('gray.100', 'gray.700'),
}}
borderRadius="md"
>
<MemberIdentityContent
email={email}
name={name}

View File

@ -96,7 +96,7 @@ export const MembersList = () => {
return (
<Stack w="full" spacing={3}>
{!canInviteNewMember && (
{true && (
<UnlockPlanAlertInfo
contentLabel={`
Upgrade your plan to work with more team members, and unlock awesome

View File

@ -20,9 +20,8 @@ import { useState } from 'react'
import { MembersList } from './MembersList'
import { WorkspaceSettingsForm } from './WorkspaceSettingsForm'
import { useWorkspace } from '../WorkspaceProvider'
import { MyAccountForm } from '@/features/account'
import { MyAccountForm, UserPreferencesForm } from '@/features/account'
import { BillingContent } from '@/features/billing'
import { EditorSettingsForm } from '@/features/editor'
type Props = {
isOpen: boolean
@ -177,9 +176,7 @@ const SettingsContent = ({
case 'my-account':
return <MyAccountForm />
case 'user-settings':
return (
<EditorSettingsForm defaultGraphNavigation={defaultGraphNavigation} />
)
return <UserPreferencesForm />
case 'workspace-settings':
return <WorkspaceSettingsForm onClose={onClose} />
case 'members':