-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use existing copyright component in footer (#827)
* use existing copyright component in footer * removed typography component from copyright * return getManifestByDir
- Loading branch information
Showing
8 changed files
with
47 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
blocks/init/src/Blocks/components/copyright/components/copyright-options.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { Toggle, checkAttr, getAttrKey } from '@eightshift/frontend-libs/scripts'; | ||
import manifest from '../manifest.json'; | ||
|
||
export const CopyrightOptions = (attributes) => { | ||
const { | ||
setAttributes | ||
} = attributes; | ||
|
||
const copyrightUse = checkAttr('copyrightUse', attributes, manifest); | ||
|
||
return ( | ||
<Toggle | ||
label={__('Copyright', 'eightshift-frontend-libs')} | ||
checked={copyrightUse} | ||
onChange={(value) => setAttributes({ [getAttrKey('copyrightUse', attributes, manifest)]: value })} | ||
reducedBottomSpacing | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters