Skip to content

Commit

Permalink
fix: remove UI functions (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh authored Jun 28, 2024
1 parent 88cca6a commit 6d6ec7e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/enums/alignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,3 @@ export const Alignment = {
Right: 'right',
} as const;
export type AlignmentType = UnionOfConst<typeof Alignment>;

export const DEFAULT_FILE_ALIGNMENT_SETTING = Alignment.Center;

export const getAlignItemsFromAlignmentSetting = (
alignment: AlignmentType = DEFAULT_FILE_ALIGNMENT_SETTING,
): 'flex-start' | 'flex-end' | 'center' => {
switch (alignment) {
case Alignment.Right:
return 'flex-end';
case Alignment.Left:
return 'flex-start';
case Alignment.Center:
return 'center';
}
};

0 comments on commit 6d6ec7e

Please sign in to comment.