Skip to content

Commit

Permalink
docs: show license in /license page (#2500)
Browse files Browse the repository at this point in the history
Looks like the license page was not converted form markdown to mdx:
https://eufemia.dnb.no/license/
  • Loading branch information
tujoworker authored Jun 26, 2023
1 parent 83b8099 commit 217bcd8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 29 deletions.
29 changes: 0 additions & 29 deletions packages/dnb-design-system-portal/src/docs/license.md

This file was deleted.

26 changes: 26 additions & 0 deletions packages/dnb-design-system-portal/src/docs/license.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: 'License'
---

import React from 'react'
import license from 'raw-loader!dnb-design-system-portal/../../LICENSE'
import { Logo, P } from '@dnb/eufemia/src'

export const License = (props) => {
return (
<P
{...props}
dangerouslySetInnerHTML={{
__html: license?.replace(/\n|\r/g, '<br />'),
}}
/>
)
}

<Logo top="x-large" size="100" />

# Eufemia Design System License

---

<License top="large" bottom="xx-large" />

1 comment on commit 217bcd8

@vercel
Copy link

@vercel vercel bot commented on 217bcd8 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.