Skip to content

Commit

Permalink
Rename WorkExperienceData to ExperienceData and drop Technology, Desc…
Browse files Browse the repository at this point in the history
…ription & Name types
  • Loading branch information
kamilmielnik committed Feb 1, 2020
1 parent 43b4a9c commit d41c395
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 35 deletions.
4 changes: 2 additions & 2 deletions src/components/Experience/Experience.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { FunctionComponent } from 'react';

import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

import ExperienceEntry from './ExperienceEntry';
import styles from './Experience.module.scss';

interface Props {
experience: WorkExperienceData[];
experience: ExperienceData[];
}

const Experience: FunctionComponent<Props> = ({ experience }) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Experience/ExperienceEntry/ExperienceEntry.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React, { FunctionComponent } from 'react';
import classNames from 'classnames';

import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

import Description from './Description';
import Info from './Info';
import Positions from './Positions';

import styles from './ExperienceEntry.module.scss';

interface Props extends WorkExperienceData {
interface Props extends ExperienceData {
className?: string;
}

Expand Down
4 changes: 1 addition & 3 deletions src/data/description.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Description } from 'types';

const description: Description = 'JavaScript Developer specializing in React';
const description: string = 'JavaScript Developer specializing in React';

export default description;
4 changes: 2 additions & 2 deletions src/data/education.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

const education: WorkExperienceData[] = [
const education: ExperienceData[] = [
{
description: 'The Faculty of Computer Science, Electronics and Telecommunications',
location: 'Kraków, Poland',
Expand Down
4 changes: 1 addition & 3 deletions src/data/name.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Name } from 'types';

const name: Name = 'Kamil Mielnik';
const name: string = 'Kamil Mielnik';

export default name;
4 changes: 2 additions & 2 deletions src/data/work-experience/cern.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CASTOR, CSS, JAVA, VAADIN, ZEROC_ICE } from 'technologies';
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

const Cern: WorkExperienceData = {
const Cern: ExperienceData = {
description: [JAVA, VAADIN, CSS, ZEROC_ICE, CASTOR].join(', '),
location: 'Genève, Switzerland',
organization: 'CERN',
Expand Down
4 changes: 2 additions & 2 deletions src/data/work-experience/codete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
RESELECT,
TECHNICAL_RECRUITMENT
} from 'technologies';
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

const Codete: WorkExperienceData = {
const Codete: ExperienceData = {
description: [JAVA_SCRIPT, REACT, REDUX, REDUX_SAGA, RESELECT, CSS].join(', '),
extra: TECHNICAL_RECRUITMENT,
location: 'Kraków, Poland',
Expand Down
4 changes: 2 additions & 2 deletions src/data/work-experience/comarch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import {
WINDOWS_PRESENTATION_FOUNDATION,
ZEND_FRAMEWORK
} from 'technologies';
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

const Comarch: WorkExperienceData = {
const Comarch: ExperienceData = {
description: [
TYPE_SCRIPT,
JAVA_SCRIPT,
Expand Down
4 changes: 2 additions & 2 deletions src/data/work-experience/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

import cern from './cern';
import codete from './codete';
import comarch from './comarch';
import pega from './pega';
import prezly from './prezly';

const workExperience: WorkExperienceData[] = [prezly, codete, pega, cern, comarch];
const workExperience: ExperienceData[] = [prezly, codete, pega, cern, comarch];

export default workExperience;
4 changes: 2 additions & 2 deletions src/data/work-experience/pega.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BACKBONE_JS, JAVA_SCRIPT, KNOCKBACK_JS, KNOCKOUT_JS, CSS } from 'technologies';
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

const Pega: WorkExperienceData = {
const Pega: ExperienceData = {
description: [JAVA_SCRIPT, KNOCKOUT_JS, KNOCKBACK_JS, BACKBONE_JS, CSS].join(', '),
location: 'Kraków, Poland',
organization: 'Pega',
Expand Down
4 changes: 2 additions & 2 deletions src/data/work-experience/prezly.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CSS, JAVA_SCRIPT, REACT, TYPE_SCRIPT } from 'technologies';
import { WorkExperienceData } from 'types';
import { ExperienceData } from 'types';

const Prezly: WorkExperienceData = {
const Prezly: ExperienceData = {
description: [TYPE_SCRIPT, JAVA_SCRIPT, REACT, CSS].join(', '),
location: 'Remote',
organization: 'Prezly',
Expand Down
16 changes: 5 additions & 11 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
export type Technology = string;
export interface TimePeriod {
from: Date;
to: Date;
}

export interface ContactInfoData {
label: string;
url: string;
value: string;
}

export type Description = string;

export type Name = string;

export interface TimePeriod {
from: Date;
to: Date;
}

export interface WorkExperienceData {
export interface ExperienceData {
description: string;
extra?: string;
location: string;
Expand Down

0 comments on commit d41c395

Please sign in to comment.