Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
advithconsulting.io-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 31f0b7b7
authored
2024-11-28 15:13:23 +0530
by
sujata
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add converstion component
1 parent
8d2127ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
components/reuseables/ConversionCode/ConversionCode.js
pages/index.js
components/reuseables/ConversionCode/ConversionCode.js
View file @
31f0b7b
...
@@ -2,13 +2,13 @@ import React from 'react';
...
@@ -2,13 +2,13 @@ import React from 'react';
import
Head
from
'next/head'
;
import
Head
from
'next/head'
;
const
ConversionCode
=
({
code
})
=>
{
const
ConversionCode
=
({
code
})
=>
{
console
.
log
(
code
?.
conversion
?.
codedata
,
"Full code data"
);
console
.
log
(
code
?.
abc
,
"Full code data"
);
return
(
return
(
<>
<>
<
Head
>
<
Head
>
<
script
<
script
dangerouslySetInnerHTML
=
{{
dangerouslySetInnerHTML
=
{{
__html
:
code
?.
conversion
?.
codedata
,
__html
:
code
?.
abc
,
}}
}}
/
>
/
>
<
/Head
>
<
/Head
>
...
...
pages/index.js
View file @
31f0b7b
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment