From 404c2f3721b6bb7525ecd678dab338761dcfc49e Mon Sep 17 00:00:00 2001 From: Sabin Marcu Date: Thu, 8 Aug 2024 20:03:37 +0300 Subject: [PATCH] fix(team-rotation): fix types in title editor --- apps/team-rotation/src/components/TitleEditor.style.tsx | 7 +++++-- apps/team-rotation/src/components/TitleEditor.tsx | 5 +---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/team-rotation/src/components/TitleEditor.style.tsx b/apps/team-rotation/src/components/TitleEditor.style.tsx index 67e1c6b..22a4fa0 100644 --- a/apps/team-rotation/src/components/TitleEditor.style.tsx +++ b/apps/team-rotation/src/components/TitleEditor.style.tsx @@ -1,8 +1,11 @@ import { styled } from '@mui/material'; -import type { ButtonsLocationProperties } from './TitleEditor.tsx'; -export const TitleEditorWrapper = styled('div')(({ location }) => ({ +export type LocationProperties = { + location?: 'left' | 'right' +}; + +export const TitleEditorWrapper = styled('div')(({ location }) => ({ display: 'flex', gap: '0.5rem', alignItems: 'center', diff --git a/apps/team-rotation/src/components/TitleEditor.tsx b/apps/team-rotation/src/components/TitleEditor.tsx index 6d3d729..9f1cf9c 100644 --- a/apps/team-rotation/src/components/TitleEditor.tsx +++ b/apps/team-rotation/src/components/TitleEditor.tsx @@ -21,6 +21,7 @@ import { useState, } from 'react'; import type { PrimitiveAtom } from 'jotai'; +import type { LocationProperties } from './TitleEditor.style.tsx'; import { TitleEditorWrapper } from './TitleEditor.style.tsx'; export type Encoder = { @@ -31,10 +32,6 @@ export type Encoder = { export type ButtonProperties = ComponentProps; export type InputProperties = ComponentProps; -export type LocationProperties = { - location?: 'left' | 'right' -}; - export type InteractionButtonProperties = { icon: typeof Edit } & ButtonProperties;