mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-07 01:51:36 -04:00
Feature/lazy load components (#590)
This commit is contained in:
parent
9c38655a92
commit
101292da92
46 changed files with 261 additions and 248 deletions
|
@ -100,7 +100,7 @@ export interface ViaOneClickProps {
|
|||
optionalName?: string;
|
||||
}
|
||||
|
||||
const ViaOneClick: React.FC<ViaOneClickProps> = ({ oneClickType, optionalName }) => {
|
||||
export const ViaOneClick: React.FC<ViaOneClickProps> = ({ oneClickType, optionalName }) => {
|
||||
const backendUrl = useSelector((state: ApplicationState) => state.apiUrl.apiUrl)
|
||||
const { name, icon, className, url } = getMetadata(backendUrl, oneClickType)
|
||||
const text = optionalName || name
|
||||
|
@ -116,5 +116,3 @@ const ViaOneClick: React.FC<ViaOneClickProps> = ({ oneClickType, optionalName })
|
|||
</SocialLinkButton>
|
||||
)
|
||||
}
|
||||
|
||||
export { ViaOneClick }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue