Skip to content

Commit

Permalink
chore: sort and update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
web-mi committed Jan 31, 2024
1 parent e5ec8b0 commit 31ab041
Show file tree
Hide file tree
Showing 6 changed files with 2,623 additions and 2,651 deletions.
12 changes: 7 additions & 5 deletions src/components/sessionHeader/SessionHeaderComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import {
SESSION_LIST_TYPES
} from '../session/sessionHelpers';
import { SessionMenu } from '../sessionMenu/SessionMenu';
import { convertUserDataObjectToArray } from '../profile/profileHelpers';
import {
convertUserDataObjectToArray,
getUserDataTranslateBase
} from '../profile/profileHelpers';
import { ReactComponent as BackIcon } from '../../resources/img/icons/arrow-left.svg';
import { ActiveSessionContext } from '../../globalState/provider/ActiveSessionProvider';
import './sessionHeader.styles';
Expand Down Expand Up @@ -63,10 +66,9 @@ export const SessionHeaderComponent = (props: SessionHeaderProps) => {
!activeSession.isLive
? convertUserDataObjectToArray(userSessionData)
: null;
const translateBase =
activeSession.item.consultingType === 0
? 'user.userAddiction'
: 'user.userU25';
const translateBase = getUserDataTranslateBase(
activeSession.item.consultingType
);

const [isSubscriberFlyoutOpen, setIsSubscriberFlyoutOpen] = useState(false);
const sessionListTab = useSearchParam<SESSION_LIST_TAB>('sessionListTab');
Expand Down
Loading

0 comments on commit 31ab041

Please sign in to comment.