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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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