Skip to content

Commit

Permalink
FIX: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashbaker committed Jan 5, 2024
1 parent 1abff6d commit 1ba73d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/client/components/Dashboard/my-tasks/MyTasks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import MyTasksTable from './MyTasksTable'
import TaskListSelect from './TaskListSelect'
import SpacedSectionBreak from '../../SpacedSectionBreak'
import { TaskCompaniesAndProjectsResource } from '../../Resource'
import { companyOptions } from './constants'
import { companyOptions } from './transformers'

const SELECT_WIDTH = `16%`

Expand Down
9 changes: 0 additions & 9 deletions src/client/components/Dashboard/my-tasks/constants.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
export const companyOptions = (companies) => {
const companiesList = companies.map((company) => ({
label: company.name,
value: company.id,
}))

return [SHOW_ALL_OPTION, ...companiesList]
}

const ME_OTHERS_OPTIONS = [
{
label: 'Me',
Expand Down
10 changes: 10 additions & 0 deletions src/client/components/Dashboard/my-tasks/transformers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { SHOW_ALL_OPTION } from './constants'

export const companyOptions = (companies) => {
const companiesList = companies.map((company) => ({
label: company.name,
value: company.id,
}))

return [SHOW_ALL_OPTION, ...companiesList]
}

0 comments on commit 1ba73d4

Please sign in to comment.