Skip to content

Commit

Permalink
Addressed Person type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahab3181 committed Mar 7, 2024
1 parent 435234b commit f93375a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
3 changes: 1 addition & 2 deletions src/pages/superadmin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import React, { useCallback, useEffect, useState } from 'react';
import { EuiLoadingSpinner } from '@elastic/eui';
import styled from 'styled-components';
import { BountyMetrics, defaultSuperAdminBountyStatus } from 'store/main';
import { BountyMetrics, defaultSuperAdminBountyStatus, Person } from 'store/main';
import { useStores } from 'store';
import moment from 'moment';
import { useInViewPort } from 'hooks';
Expand All @@ -15,7 +15,6 @@ import { Statistics } from './statistics';
import AdminAccessDenied from './accessDenied';
import { normalizeMetrics } from './utils/metrics';
import { pageSize, visibleTabs } from './constants.ts';
import { Person } from './tableComponent/interfaces.ts';

const Container = styled.body`
height: 100vh; /* Set a fixed height for the container */
Expand Down
3 changes: 2 additions & 1 deletion src/pages/superadmin/tableComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled from 'styled-components';
import moment from 'moment';
import { EuiCheckboxGroup, EuiPopover, EuiText } from '@elastic/eui';
import MaterialIcon from '@material/react-material-icon';
import { Person } from 'store/main';
import paginationarrow1 from '../header/icons/paginationarrow1.svg';
import paginationarrow2 from '../header/icons/paginationarrow2.svg';
import defaultPic from '../../../public/static/profile_avatar.svg';
Expand All @@ -11,7 +12,7 @@ import { dateFilterOptions } from '../utils';
import { pageSize, visibleTabs } from '../constants.ts';
import checkboxImage from './Icons/checkboxImage.svg';
import { colors } from './../../../config/colors';
import { Bounty, Person } from './interfaces.ts';
import { Bounty } from './interfaces.ts';

import {
TableContainer,
Expand Down
25 changes: 0 additions & 25 deletions src/pages/superadmin/tableComponent/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,3 @@ export type Bounty = {
assignee_alias: string;
paid: boolean;
};

export interface Person {
id: number;
unique_name: string;
owner_pubkey: string;
uuid: string;
owner_alias: string;
description: string;
img: string;
tags: string[];
pubkey?: string;
photo_url?: string;
alias?: string;
route_hint?: string;
owner_route_hint?: string;
owner_contact_key?: string;
price_to_meet: number;
last_login?: number;
url?: string;
verification_signature?: string;
hide?: boolean;
commitment_fee?: number;
assigned_hours?: number;
bounty_expires?: number;
}

0 comments on commit f93375a

Please sign in to comment.