Skip to content

Commit

Permalink
feat: remove offset rendering for now
Browse files Browse the repository at this point in the history
  • Loading branch information
honnix committed Oct 20, 2020
1 parent 027e57e commit 0e87f36
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
6 changes: 1 addition & 5 deletions src/components/Entities/EntitySchedules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ const RenderSchedules: React.FC<{
{launchPlans.map((launchPlan, idx) => {
const { schedule } = launchPlan.spec.entityMetadata;
const frequencyString = getScheduleFrequencyString(schedule);
const offsetString = getScheduleOffsetString(schedule);
const scheduleString = offsetString
? `${frequencyString} (offset: ${offsetString})`
: frequencyString;
return <li key={idx}>{scheduleString}</li>;
return <li key={idx}>{frequencyString}</li>;
})}
</ul>
);
Expand Down
12 changes: 0 additions & 12 deletions src/components/Launch/SchedulesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ export const schedulesTableColumns: KeyedColumnProps[] = [
label: 'frequency',
width: schedulesTableColumnsWidths.frequency
},
{
cellDataGetter: ({ rowData }: CellDataGetterParams) =>
rowData.spec.entityMetadata.schedule,
cellRenderer: ({ cellData: schedule }: TableCellProps<Schedule>) =>
getScheduleOffsetString(schedule),
dataKey: 'closure',
flexGrow: 1,
flexShrink: 0,
key: 'offset',
label: 'offset',
width: schedulesTableColumnsWidths.offset
},
{
cellDataGetter: ({ rowData }: CellDataGetterParams) =>
isLaunchPlanActive(rowData),
Expand Down
1 change: 0 additions & 1 deletion src/components/Launch/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export const launchPlansTableColumnWidths = {
export const schedulesTableColumnsWidths = {
active: 80,
frequency: 300,
offset: 80,
name: 250
};

0 comments on commit 0e87f36

Please sign in to comment.