Skip to content

Commit

Permalink
Multiple hosting envs (#361)
Browse files Browse the repository at this point in the history
* add date to config json to avoid caching

* fixed syntax error on qs

* recommit of wip for mulltiple envs

* updated gitignore

* added warning TODO

* working multiple env progress

* multiple env progress and updates for tests

* fixed tests

* actually fixed tests...

* fixes for build errors

* hosting environment limit

* updated snapshots

* snapshots

* fixed required fields warning
  • Loading branch information
sdstolworthy authored Nov 12, 2020
1 parent ee95c5c commit 6bb10c8
Show file tree
Hide file tree
Showing 37 changed files with 807 additions and 1,278 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# testing
/coverage

public/config/*
!public/config/config.example.json

# production
/build
/package-contents
Expand Down
10 changes: 0 additions & 10 deletions public/config/config.json.current

This file was deleted.

10 changes: 0 additions & 10 deletions public/config/config.json.jacob

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import React from 'react';
import { Button, ButtonVariant } from '@patternfly/react-core';
export function EditButton({
text,
isDisabled = false,
onClick,
dataCy,
...props
}: {
text: string;
onClick: () => void;
dataCy?: string;
isDisabled?: boolean;
}) {
return (
<Button
Expand All @@ -17,6 +19,7 @@ export function EditButton({
onClick={onClick}
style={{ minWidth: '7rem' }}
data-cy={dataCy}
isDisabled={isDisabled}
>
{text}
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { Feature } from '../feature/feature';

export function EngagementEditableCategories({
engagementCategories,
onSave: propsOnSave,
engagement,
}: {
engagementCategories?: EngagementCategory[];
onSave: (engagement: Engagement) => void;
engagement: Engagement;
}) {
// TODO: This should come from props. This is a hotfix and should be replaced to use the save method that is passed from props.
const { saveEngagement } = useEngagements();
const [chips, setChips] = useState<string[]>([]);
const [editMode, setEditMode] = useState(false);
Expand Down
Loading

0 comments on commit 6bb10c8

Please sign in to comment.