diff --git a/apps/web/app/[locale]/settings/layout.tsx b/apps/web/app/[locale]/settings/layout.tsx index e71fc3db8..5b3c3344d 100644 --- a/apps/web/app/[locale]/settings/layout.tsx +++ b/apps/web/app/[locale]/settings/layout.tsx @@ -46,10 +46,8 @@ const SettingsLayout = ({ children }: { children: JSX.Element }) => {
-
- -
-
{children}
+ +
{children}
diff --git a/apps/web/app/hooks/useLeftSettingData.ts b/apps/web/app/hooks/useLeftSettingData.ts index 7967576bf..60172af88 100644 --- a/apps/web/app/hooks/useLeftSettingData.ts +++ b/apps/web/app/hooks/useLeftSettingData.ts @@ -80,12 +80,12 @@ export const useLeftSettingData = () => { href: '#labels', managerOnly: false }, - { - title: t('pages.settingsTeam.RELATED_ISSUE_TYPE'), - color: '#7E7991', - href: '#related-issue-types', - managerOnly: true - }, + // { + // title: t('pages.settingsTeam.RELATED_ISSUE_TYPE'), + // color: '#7E7991', + // href: '#related-issue-types', + // managerOnly: true + // }, // { // title: t('pages.settingsTeam.NOTIFICATION_HEADING'), // color: '#7E7991', diff --git a/apps/web/components/ui/scroll-bar.tsx b/apps/web/components/ui/scroll-bar.tsx index b94c3e717..dfddf4fae 100644 --- a/apps/web/components/ui/scroll-bar.tsx +++ b/apps/web/components/ui/scroll-bar.tsx @@ -4,7 +4,6 @@ import * as React from 'react'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; import { clsxm } from '@app/utils'; - const ScrollArea = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef @@ -34,7 +33,7 @@ const ScrollBar = React.forwardRef< )} {...props} > - + )); ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName; diff --git a/apps/web/lib/components/color-picker.tsx b/apps/web/lib/components/color-picker.tsx index ca162d31e..e03afac25 100644 --- a/apps/web/lib/components/color-picker.tsx +++ b/apps/web/lib/components/color-picker.tsx @@ -1,12 +1,11 @@ 'use client'; import { useCallbackRef } from '@app/hooks'; -import { clsxm } from '@app/utils'; -import { Popover, Transition } from '@headlessui/react'; +import { Transition, Popover } from '@headlessui/react'; import { useState, useEffect, Fragment, useRef, useCallback } from 'react'; import { HexColorPicker } from 'react-colorful'; -import { Dropdown } from './dropdown'; import { EditPenUnderlineIcon, TrashIcon } from 'assets/svg'; +import { PopoverTrigger, PopoverContent, Popover as PopoverDropdown } from '@components/ui/popover'; export const ColorPicker = ({ defaultColor, @@ -125,10 +124,7 @@ export const ColorPicker = ({ leaveTo="opacity-0 translate-y-1" show={!disabled} > - + @@ -136,23 +132,16 @@ export const ColorPicker = ({ )} ) : ( - ( -
- - {color || 'Color'} -
- ) - }} - items={[]} - closeOnChildrenClick={false} - > - -
+ + +
+ + {color || 'Color'} +
+
+ + + +
); }; diff --git a/apps/web/lib/components/dropdown.tsx b/apps/web/lib/components/dropdown.tsx index 5d8fe915d..a428e36ca 100644 --- a/apps/web/lib/components/dropdown.tsx +++ b/apps/web/lib/components/dropdown.tsx @@ -6,6 +6,7 @@ import React, { Dispatch, PropsWithChildren, SetStateAction } from 'react'; import { Card } from './card'; import { SpinnerLoader } from './loader'; import { useTranslations } from 'next-intl'; +import { ScrollArea } from '@components/ui/scroll-bar'; export type DropdownItem> = { key: React.Key; @@ -113,24 +114,26 @@ export function Dropdown({ /> )} -
- {items.map((Item, index) => ( - - {({ active, selected }) => { - return Item.Label ? ( - - ) : ( - <> - ); - }} - - ))} -
- + +
+ {items.map((Item, index) => ( + + {({ active, selected }) => { + return Item.Label ? ( + + ) : ( + <> + ); + }} + + ))} +
+ {/* */} +
{/* Additional content */} {closeOnChildrenClick && {children}} {!closeOnChildrenClick && children} diff --git a/apps/web/lib/components/pagination.tsx b/apps/web/lib/components/pagination.tsx index 4960bf91d..5601da628 100644 --- a/apps/web/lib/components/pagination.tsx +++ b/apps/web/lib/components/pagination.tsx @@ -17,7 +17,7 @@ export function Paginate({ total, itemsPerPage = 10, onPageChange, itemOffset, e return (
-
+
{`Showing ${itemOffset + 1} to ${endOffset} of ${total} entries`} diff --git a/apps/web/lib/settings/list-card.tsx b/apps/web/lib/settings/list-card.tsx index 3811cba1d..2f424d298 100644 --- a/apps/web/lib/settings/list-card.tsx +++ b/apps/web/lib/settings/list-card.tsx @@ -53,9 +53,10 @@ export const StatusesListCard = ({ > diff --git a/apps/web/lib/settings/member-setting.tsx b/apps/web/lib/settings/member-setting.tsx index 8f8fe8427..247edc5c8 100644 --- a/apps/web/lib/settings/member-setting.tsx +++ b/apps/web/lib/settings/member-setting.tsx @@ -46,7 +46,7 @@ export const MemberSetting = () => {
{members.length > 0 ? ( -
+
) : ( diff --git a/apps/web/lib/settings/personal-setting-form.tsx b/apps/web/lib/settings/personal-setting-form.tsx index 5c9deb968..3009aa1fb 100644 --- a/apps/web/lib/settings/personal-setting-form.tsx +++ b/apps/web/lib/settings/personal-setting-form.tsx @@ -308,7 +308,7 @@ export const PersonalSettingForm = () => {
- + {theme === 'light' ? 'Light' : 'Dark'} Mode
@@ -320,7 +320,7 @@ export const PersonalSettingForm = () => { {t('common.LANGUAGE')} -
+
{ @@ -336,7 +336,7 @@ export const PersonalSettingForm = () => { {t('common.TIME_ZONE')} -
+
{ diff --git a/apps/web/lib/settings/timezone-dropdown.tsx b/apps/web/lib/settings/timezone-dropdown.tsx index 389f13fc7..9f68f753a 100644 --- a/apps/web/lib/settings/timezone-dropdown.tsx +++ b/apps/web/lib/settings/timezone-dropdown.tsx @@ -72,12 +72,13 @@ export const TimezoneDropDown = ({ onChange(e)} items={items as any}