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 { 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>
|
||||||
{
|
{
|
@ -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';
|
||||||
|
|
@ -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
|
@ -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 && (
|
||||||
|
@ -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
|
@ -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
|
@ -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
|
||||||
{
|
{
|
@ -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
|
@ -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';
|
Loading…
Reference in New Issue
Block a user