Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
recondesigns committed Mar 4, 2024
1 parent ed3f460 commit 71b4fab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 43 deletions.
21 changes: 1 addition & 20 deletions components/FeaturedJobItem/FeaturedJobItem.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
// import { string, bool } from 'prop-types';
import OutboundLink from 'components/OutboundLink/OutboundLink';
import BuildingIcon from 'static/images/icons/FontAwesome/building_icon.svg';
import CloudUploadIcon from 'static/images/icons/FontAwesome/cloud_upload_icon.svg';
import MapMarkerIcon from 'static/images/icons/FontAwesome/map_marker_icon.svg';

// FeaturedJobItem.propTypes = {
// title: string.isRequired,
// source: string.isRequired,
// sourceUrl: string.isRequired,
// city: string,
// state: string,
// country: string,
// description: string.isRequired,
// remote: bool,
// };

export type FeaturedJobItemPropsType = {
/**
* Title of the feautured job item.
Expand All @@ -40,7 +28,7 @@ export type FeaturedJobItemPropsType = {
* Applies an optional state for the featured job.
*/
state?: string;
/**
/**
* Applies an optional country for the featured job.
*/
country?: string;
Expand All @@ -51,13 +39,6 @@ export type FeaturedJobItemPropsType = {
remote?: boolean;
};

// FeaturedJobItem.defaultProps = {
// remote: false,
// city: '',
// state: '',
// country: '',
// };

function FeaturedJobItem({
title,
source,
Expand Down
30 changes: 7 additions & 23 deletions components/FeaturedJobItem/__stories__/FeaturedJobItem.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Meta, StoryObj } from '@storybook/react'
import { Meta, StoryObj } from '@storybook/react';
import { descriptions } from 'common/constants/descriptions';
import FeaturedJobItem from '../FeaturedJobItem';

type FeaturedJobItemStoryType = StoryObj<typeof FeaturedJobItem>
type FeaturedJobItemStoryType = StoryObj<typeof FeaturedJobItem>;

const meta: Meta<typeof FeaturedJobItem> = {
title: 'FeaturedJobItem',
component: FeaturedJobItem
}
component: FeaturedJobItem,
};

export default meta
export default meta;

/**
* Default FeaturedJobItem supplied with only required args.
Expand All @@ -21,21 +21,5 @@ export const Default: FeaturedJobItemStoryType = {
source: 'Company Name',
sourceUrl: '#',
description: descriptions.long,
}
}

// export default {
// component: FeaturedJobItem,
// title: 'FeaturedJobItem',
// };

// const Template = arguments_ => <FeaturedJobItem {...arguments_} />;

// // Default FeaturedJobItem supplied with only required args
// export const Default = Template.bind({});
// Default.args = {
// title: 'Job Title',
// source: 'Company Name',
// sourceUrl: '#',
// description: descriptions.long,
// };
},
};

0 comments on commit 71b4fab

Please sign in to comment.