Skip to content

Commit

Permalink
fix(team-rotation): fix types in title editor
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinmarcu committed Aug 8, 2024
1 parent aaf61e7 commit 404c2f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions apps/team-rotation/src/components/TitleEditor.style.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import
{ styled } from '@mui/material';
import type { ButtonsLocationProperties } from './TitleEditor.tsx';

export const TitleEditorWrapper = styled('div')<ButtonsLocationProperties>(({ location }) => ({
export type LocationProperties = {
location?: 'left' | 'right'
};

export const TitleEditorWrapper = styled('div')<LocationProperties>(({ location }) => ({
display: 'flex',
gap: '0.5rem',
alignItems: 'center',
Expand Down
5 changes: 1 addition & 4 deletions apps/team-rotation/src/components/TitleEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -31,10 +32,6 @@ export type Encoder = {
export type ButtonProperties = ComponentProps<typeof IconButton>;
export type InputProperties = ComponentProps<typeof TextField>;

export type LocationProperties = {
location?: 'left' | 'right'
};

export type InteractionButtonProperties = {
icon: typeof Edit
} & ButtonProperties;
Expand Down

0 comments on commit 404c2f3

Please sign in to comment.