style: move lib outside of app folder
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import { useState, useEffect, useMemo } from 'react';
|
||||
import { useInventoryStore } from '@/store/useInventoryStore';
|
||||
|
||||
import { isKiller } from '../lib/utils';
|
||||
import { isKiller } from '../../lib/utils';
|
||||
|
||||
import shared from '../../styles/shared.module.css';
|
||||
import styles from '../../styles/Characters.module.css';
|
||||
|
||||
@@ -6,7 +6,7 @@ import { useInventoryStore } from '@/store/useInventoryStore';
|
||||
import shared from '../../styles/shared.module.css';
|
||||
import styles from '../../styles/Customizations.module.css';
|
||||
|
||||
import { getFileName, cleanFolderName, isKiller } from '../lib/utils';
|
||||
import { getFileName, cleanFolderName, isKiller } from '../../lib/utils';
|
||||
import { Character, CustomizationItem, RoleFilter, Tab, TAB_CATEGORIES, CATEGORY_ORDER } from './types';
|
||||
import CharacterPicker from './CharacterPicker';
|
||||
import CharacterCosmetics from './CharacterCosmetics';
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
export const getFileName = (iconFilePath: string): string => {
|
||||
const base = iconFilePath.split('/').pop() ?? '';
|
||||
return base.split('.')[0];
|
||||
};
|
||||
|
||||
export const cleanFolderName = (name: string): string =>
|
||||
name.replace(/[\\/:*?"<>|]/g, '_');
|
||||
|
||||
export const isKiller = (idx: number): boolean => idx >= 268435456;
|
||||
Reference in New Issue
Block a user