Update achievements

This commit is contained in:
Bill 2024-06-20 16:42:44 -04:00
parent 5bd351c3dc
commit 15157e3636
11 changed files with 23 additions and 23 deletions

View File

@ -1,7 +1,7 @@
import { AchievementData } from '@nitrots/nitro-renderer';
import { FC } from 'react';
import { AchievementUtilities } from '../../../api';
import { BaseProps, LayoutBadgeImageView } from '../../../common';
import { AchievementUtilities } from '../../api';
import { BaseProps, LayoutBadgeImageView } from '../../common';
interface AchievementBadgeViewProps extends BaseProps<HTMLDivElement>
{

View File

@ -1,7 +1,7 @@
import { FC, useEffect } from 'react';
import { AchievementCategory } from '../../../api';
import { Column } from '../../../common';
import { useAchievements } from '../../../hooks';
import { AchievementCategory } from '../../api';
import { Column } from '../../common';
import { useAchievements } from '../../hooks';
import { AchievementDetailsView } from './AchievementDetailsView';
import { AchievementListView } from './achievement-list';

View File

@ -1,7 +1,7 @@
import { AchievementData } from '@nitrots/nitro-renderer';
import { FC } from 'react';
import { AchievementUtilities, LocalizeBadgeDescription, LocalizeBadgeName, LocalizeText } from '../../../api';
import { Column, Flex, LayoutCurrencyIcon, LayoutProgressBar, Text } from '../../../common';
import { AchievementUtilities, LocalizeBadgeDescription, LocalizeBadgeName, LocalizeText } from '../../api';
import { Column, Flex, LayoutCurrencyIcon, LayoutProgressBar, Text } from '../../common';
import { AchievementBadgeView } from './AchievementBadgeView';
interface AchievementDetailsViewProps

View File

@ -1,4 +1,5 @@
import {
import
{
AddLinkEventTracker,
ILinkEventTracker,
RemoveLinkEventTracker,
@ -8,8 +9,8 @@ import { AchievementUtilities, LocalizeText } from '../../api';
import { Column, LayoutImage, LayoutProgressBar, Text } from '../../common';
import { useAchievements } from '../../hooks';
import { NitroCard } from '../../layout';
import { AchievementCategoryView } from './views/AchievementCategoryView';
import { AchievementsCategoryListView } from './views/category-list/AchievementsCategoryListView';
import { AchievementCategoryView } from './AchievementCategoryView';
import { AchievementsCategoryListView } from './category-list';
export const AchievementsView: FC<{}> = (props) =>
{
@ -108,10 +109,8 @@ export const AchievementsView: FC<{}> = (props) =>
selectedCategoryCode={selectedCategoryCode}
setSelectedCategoryCode={setSelectedCategoryCode}
/>
<Column
className="!flex-grow"
gap={1}
justifyContent="end"
<div
className="flex flex-col justify-end flex-grow gap-1"
>
<Text center small>
{LocalizeText(
@ -132,7 +131,7 @@ export const AchievementsView: FC<{}> = (props) =>
]
)}
/>
</Column>
</div>
</>
)}
{selectedCategory && (

View File

@ -1,7 +1,7 @@
import { AchievementData } from '@nitrots/nitro-renderer';
import { FC } from 'react';
import { LayoutGridItem } from '../../../../common';
import { useAchievements } from '../../../../hooks';
import { LayoutGridItem } from '../../../common';
import { useAchievements } from '../../../hooks';
import { AchievementBadgeView } from '../AchievementBadgeView';
interface AchievementListItemViewProps

View File

@ -1,6 +1,6 @@
import { AchievementData } from '@nitrots/nitro-renderer';
import { FC } from 'react';
import { AutoGrid } from '../../../../common';
import { AutoGrid } from '../../../common';
import { AchievementListItemView } from './AchievementListItemView';
interface AchievementListViewProps

View File

@ -1,6 +1,6 @@
import { Dispatch, FC, SetStateAction } from 'react';
import { AchievementUtilities, IAchievementCategory, LocalizeText } from '../../../../api';
import { LayoutBackgroundImage, LayoutGridItem, Text } from '../../../../common';
import { AchievementUtilities, IAchievementCategory, LocalizeText } from '../../../api';
import { LayoutBackgroundImage, LayoutGridItem, Text } from '../../../common';
interface AchievementCategoryListItemViewProps
{

View File

@ -1,6 +1,6 @@
import { Dispatch, FC, SetStateAction } from 'react';
import { IAchievementCategory } from '../../../../api';
import { AutoGrid } from '../../../../common';
import { IAchievementCategory } from '../../../api';
import { AutoGrid } from '../../../common';
import { AchievementsCategoryListItemView } from './AchievementsCategoryListItemView';
interface AchievementsCategoryListViewProps

View File

@ -1,5 +1,6 @@
export * from './achievement-list';
export * from './AchievementBadgeView';
export * from './AchievementCategoryView';
export * from './AchievementDetailsView';
export * from './AchievementsView';
export * from './achievement-list';
export * from './category-list';