-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): Rename route for License Agreement
- Loading branch information
1 parent
c766ba2
commit ba81945
Showing
7 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/frontend/src/lib/components/license-agreement/LicenseAgreement.svelte
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,33 @@ | ||
<script lang="ts"> | ||
import { Html } from '@dfinity/gix-components'; | ||
import { i18n } from '$lib/stores/i18n.store.js'; | ||
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils.js'; | ||
let termsList: string[]; | ||
$: termsList = [ | ||
$i18n.license_agreement.text.paragraph_1, | ||
$i18n.license_agreement.text.paragraph_2, | ||
$i18n.license_agreement.text.paragraph_3, | ||
$i18n.license_agreement.text.limited_license, | ||
$i18n.license_agreement.text.restrictions, | ||
$i18n.license_agreement.text.applicable_laws, | ||
$i18n.license_agreement.text.reservation_rights, | ||
$i18n.license_agreement.text.feedback, | ||
$i18n.license_agreement.text.termination, | ||
$i18n.license_agreement.text.warranty_liability, | ||
$i18n.license_agreement.text.indemnity, | ||
$i18n.license_agreement.text.governing_law, | ||
$i18n.license_agreement.text.entire_agreement, | ||
$i18n.license_agreement.text.assignment, | ||
$i18n.license_agreement.text.no_waiver, | ||
$i18n.license_agreement.text.english_version | ||
]; | ||
</script> | ||
|
||
<h1 class="text-5xl">{replaceOisyPlaceholders($i18n.license_agreement.text.title)}</h1> | ||
|
||
<section class="mt-12"> | ||
{#each termsList as terms} | ||
<p><Html text={replaceOisyPlaceholders(terms)} /></p> | ||
{/each} | ||
</section> |
33 changes: 0 additions & 33 deletions
33
src/frontend/src/lib/components/terms-and-conditions/TermsAndConditions.svelte
This file was deleted.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
src/frontend/src/routes/(public)/license-agreement/+page.svelte
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,5 @@ | ||
<script lang="ts"> | ||
import LicenseAgreement from '$lib/components/license-agreement/LicenseAgreement.svelte'; | ||
</script> | ||
|
||
<LicenseAgreement /> |
File renamed without changes.
5 changes: 0 additions & 5 deletions
5
src/frontend/src/routes/(public)/terms-and-conditions/+page.svelte
This file was deleted.
Oops, something went wrong.