Skip to content

Commit

Permalink
Source/collection headers | clubbed default and supported locale
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jan 15, 2021
1 parent 490b9d0 commit edaf1dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/collections/CollectionHomeHeader.jsx
Expand Up @@ -24,6 +24,7 @@ import HeaderAttribute from '../common/HeaderAttribute';
import HeaderLogo from '../common/HeaderLogo';
import CommonFormDrawer from '../common/CommonFormDrawer';
import CollectionForm from './CollectionForm';
import SupportedLocales from '../common/SupportedLocales';

const HIDDEN_ATTRIBUTES = {
canonical_url: 'url',
Expand Down Expand Up @@ -143,8 +144,7 @@ const CollectionHomeHeader = ({
<HeaderAttribute label="Short Code" value={collection.short_code} gridClass="col-md-12" />
<HeaderAttribute label="Name" value={collection.name} gridClass="col-md-12" />
<HeaderAttribute label="Collection Type" value={collection.collection_type} gridClass="col-md-12" />
<HeaderAttribute label="Default Locale" value={collection.default_locale} gridClass="col-md-12" />
<HeaderAttribute label="Supported Locale" value={collection.supported_locales.join(', ')} gridClass="col-md-12" />
<HeaderAttribute label="Supported Locales" value={<SupportedLocales {...collection} />} gridClass="col-md-12" type="component" />
<HeaderAttribute label="Custom Validation Schema" value={collection.custom_validation_schema} gridClass="col-md-12" />
<HeaderAttribute label="Custom Attributes" value={<CustomAttributesPopup attributes={collection.extras} />} gridClass="col-md-12" />
{
Expand Down
4 changes: 2 additions & 2 deletions src/components/sources/SourceHomeHeader.jsx
Expand Up @@ -24,6 +24,7 @@ import HeaderAttribute from '../common/HeaderAttribute';
import HeaderLogo from '../common/HeaderLogo';
import CommonFormDrawer from '../common/CommonFormDrawer';
import SourceForm from './SourceForm';
import SupportedLocales from '../common/SupportedLocales';

const HIDDEN_ATTRIBUTES = {
canonical_url: 'url',
Expand Down Expand Up @@ -139,8 +140,7 @@ const SourceHomeHeader = ({
</div>
}
<HeaderAttribute label="Source Type" value={source.source_type} gridClass="col-md-12" />
<HeaderAttribute label="Default Locale" value={source.default_locale} gridClass="col-md-12" />
<HeaderAttribute label="Supported Locale" value={source.supported_locales.join(', ')} gridClass="col-md-12" />
<HeaderAttribute label="Supported Locales" value={<SupportedLocales {...source} />} gridClass="col-md-12" type="component" />
<HeaderAttribute label="Custom Validation Schema" value={source.custom_validation_schema} gridClass="col-md-12" />
<HeaderAttribute label="Custom Attributes" value={!isEmpty(source.extras) && <CustomAttributesPopup attributes={source.extras} />} gridClass="col-md-12" />
{
Expand Down

0 comments on commit edaf1dd

Please sign in to comment.