Browse Source

FIX | minor crush fix

merge-requests/86/head
Yevhen Romanenko 3 years ago
parent
commit
69e7161f32
  1. 1
      src/containers/Profile/components/profile-main.component.tsx
  2. 6
      src/containers/Profile/profile.page.tsx
  3. 1
      src/containers/UserDetail/user-detail.page.tsx

1
src/containers/Profile/components/profile-main.component.tsx

@ -14,7 +14,6 @@ interface IProps { @@ -14,7 +14,6 @@ interface IProps {
}
export const ProfileMain: FC<IProps> = ({ isUpdate, profile, authProfile }) => {
console.log("profile", profile.info.avatarUrl);
return (
<>
<Col md={12} lg={12} xl={12}>

6
src/containers/Profile/profile.page.tsx

@ -17,7 +17,11 @@ export const ProfileDetail: FC = () => { @@ -17,7 +17,11 @@ export const ProfileDetail: FC = () => {
<Row>
<Col md={12} lg={12} xl={4}>
<Row>
<ProfileMain isUpdate={isUpdated} profile={profile} />
<ProfileMain
isUpdate={isUpdated}
profile={profile}
authProfile={profile}
/>
</Row>
</Col>

1
src/containers/UserDetail/user-detail.page.tsx

@ -17,7 +17,6 @@ export const UserDetail: FC<IProps> = ({ match: { params: id } }) => { @@ -17,7 +17,6 @@ export const UserDetail: FC<IProps> = ({ match: { params: id } }) => {
const contactId = parseInt(id.id);
const { contactInfo } = useContact(contactId);
console.log(contactInfo);
const isUpdated = getPermissionCheck("user", "update", profile);

Loading…
Cancel
Save