Skip to content

Commit

Permalink
bt-771: - feedback values
Browse files Browse the repository at this point in the history
  • Loading branch information
mskmee committed Sep 30, 2023
1 parent 1a2f5af commit e1a1268
Showing 1 changed file with 6 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,43 +1,18 @@
import React from 'react';

import { Tag, Text, View } from '~/bundles/common/components/components';
import { Text, View } from '~/bundles/common/components/components';
import { TextCategory } from '~/bundles/common/enums/enums';
import { useAppSelector } from '~/bundles/common/hooks/use-app-selector/use-app-selector.hook';
import { globalStyles } from '~/bundles/common/styles/styles';

import { styles } from './styles';

//todo replace with real data
const mockUser = {
PERSONAL_TYPE: ['Thinker'],
HR_BADGES: [
'Communicative',
'Collaboration',
'Creative',
'Problem-solving',
'Leadership',
],
};

const FeedbacksContainer = (): JSX.Element => {
const { lmsData } = useAppSelector(({ commonData }) => commonData);

return (
<>
<Text category={TextCategory.BODY1}>Personality type</Text>
<View
style={[
globalStyles.pt5,
globalStyles.pb25,
globalStyles.flexDirectionRow,
styles.personalityWrapper,
]}
>
{mockUser.PERSONAL_TYPE.map((type) => {
return <Tag key={type} value={type} />;
})}
</View>
<Text category={TextCategory.BODY1}>HR badges</Text>
<Text category={TextCategory.BODY1}>HR Feedback: </Text>
<View
style={[
globalStyles.pt5,
Expand All @@ -46,27 +21,11 @@ const FeedbacksContainer = (): JSX.Element => {
styles.personalityWrapper,
]}
>
{mockUser.HR_BADGES.map((badge) => {
return <Tag key={badge} value={badge} />;
})}
<Text>
{lmsData?.hrFeedback.result.comment ??
lmsData?.hrFeedback.comments}
</Text>
</View>

<>
<Text category={TextCategory.BODY1}>HR Feedback: </Text>
<View
style={[
globalStyles.pt5,
globalStyles.pb25,
globalStyles.flexDirectionRow,
styles.personalityWrapper,
]}
>
<Text>
{lmsData?.hrFeedback.result.comment ??
lmsData?.hrFeedback.comments}
</Text>
</View>
</>
</>
);
};
Expand Down

0 comments on commit e1a1268

Please sign in to comment.