-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathsample.tsx
More file actions
55 lines (51 loc) · 2.04 KB
/
sample.tsx
File metadata and controls
55 lines (51 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import React, {Fragment} from 'react'
import {getStaticAssetUrl} from '@salesforce/pwa-kit-react-sdk/ssr/universal/utils'
import extensionMeta from '../../extension-meta.json'
const Sample = () => {
const logoUrl = getStaticAssetUrl('salesforce-logo.svg', {
appExtensionPackageName: extensionMeta.id
})
return (
<Fragment>
<h1>Welcome to the Sample Page 👋</h1>
<hr />
<img alt="logo" src={logoUrl} width={200} />
<p>
If you are reading this, it means that this page was successfully added to your base
project. 🎉
</p>
<p>
This <i>Application Extension</i> was installed by running the below command in your
PWA-Kit project. Its dependancies were automatically installed and the extension
configured into your projects extensions array.
</p>
<div
style={{
border: '1px solid darkGray',
backgroundColor: 'lightgray',
width: 'calc(100% - 10px)',
padding: '5px'
}}
>
<code>
> npm install @salesforce/extension-sample
<br />
> Downloading npm package... <br />
> Installing extention... <br />
> Finished. <br />
> Congratulations! The Sample extension was successfully installed! Please
visit https://www.npmjs.com/package/@salesforce/extension-sample for more
information on how to use this extension.
</code>
</div>
</Fragment>
)
}
Sample.getTemplateName = () => 'sample'
export default Sample