Skip to content

Commit

Permalink
Fix failing workflows from unresolved conflicts (#1950)
Browse files Browse the repository at this point in the history
* fix: failing gh workflows from unresolved conflicts

* minor cleanup
  • Loading branch information
mythilytm authored Dec 16, 2023
1 parent b8faa1a commit f0c7fb1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import React from 'react';

import { CLTable, CLTableRow, CLTableCell } from '../../../styles/caseList';
import { StandardTable, DataTableRow, DataCell } from '../../../styles/table';
import { useProfileListLoader } from '../../../states/profile/hooks/useProfileListLoader';
import { useProfileList } from '../../../states/profile/hooks/useProfileList';
import ProfileListRow from './ProfileListRow';
Expand All @@ -32,17 +32,17 @@ const ProfileListPage: React.FC = () => {
return (
<>
<h1>Clients</h1>
<CLTable>
<CLTableRow>
<CLTableCell> Client</CLTableCell>
<CLTableCell> Identifier(s)</CLTableCell>
<CLTableCell> Status</CLTableCell>
<CLTableCell> Overview</CLTableCell>
</CLTableRow>
<StandardTable>
<DataTableRow>
<DataCell> Client</DataCell>
<DataCell> Identifier(s)</DataCell>
<DataCell> Status</DataCell>
<DataCell> Overview</DataCell>
</DataTableRow>
{profileIds?.map(profileId => (
<ProfileListRow key={profileId} profileId={profileId} />
))}
</CLTable>
</StandardTable>
</>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { connect } from 'react-redux';

import { useProfile } from '../../../states/profile/hooks/useProfile';
import { Profile } from '../../../states/profile/types';
import { CLTableRow, CLTableCell } from '../../../styles/caseList';
import { DataTableRow, DataCell } from '../../../styles/table';
import { newOpenModalAction } from '../../../states/routing/actions';

type OwnProps = {
Expand All @@ -32,17 +32,14 @@ type Props = OwnProps & {

const ProfileListRow: React.FC<Props> = ({ profileId, openProfileDetails }) => {
const { profile } = useProfile({ profileId });
console.log('>>> profile', profile);
const handleViewProfile = () => {
openProfileDetails(profileId.toString());
};

return (
<CLTableRow onClick={handleViewProfile}>
<CLTableCell onClick={handleViewProfile}>{profile?.id}</CLTableCell>
<CLTableCell>id</CLTableCell>
<CLTableCell>blocked abusive</CLTableCell>
<CLTableCell>summary</CLTableCell>
</CLTableRow>
<DataTableRow>
<DataCell>{profile?.id}</DataCell>
<DataCell>id</DataCell>
<DataCell>blocked abusive</DataCell>
<DataCell>summary</DataCell>
</DataTableRow>
);
};

Expand Down

0 comments on commit f0c7fb1

Please sign in to comment.