mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Update achievements
This commit is contained in:
parent
5bd351c3dc
commit
15157e3636
@ -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>
|
||||
{
|
@ -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';
|
||||
|
@ -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
|
@ -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 && (
|
||||
|
@ -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
|
@ -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
|
@ -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
|
||||
{
|
@ -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
|
@ -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';
|
Loading…
Reference in New Issue
Block a user