Skip to content

Commit

Permalink
Merge pull request #34 from nafistiham/manipulating-the-dom-with-refs
Browse files Browse the repository at this point in the history
Manipulating the dom with refs
  • Loading branch information
nomandhoni-cs authored May 23, 2023
2 parents 91bffe1 + e733131 commit 078ef79
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 103 deletions.
6 changes: 3 additions & 3 deletions src/components/MDX/ExpandableExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
{isDeepDive && (
<>
<IconDeepDive className="inline mr-2 dark:text-purple-30 text-purple-40" />
Deep Dive
গভীরভাবে জানুন
</>
)}
{isExample && (
<>
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
Example
উদাহরণ
</>
)}
</h5>
Expand All @@ -101,7 +101,7 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
<span className="mr-1">
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
</span>
{isExpanded ? 'Hide Details' : 'Show Details'}
{isExpanded ? 'সংক্ষেপ করুন' : 'বিস্তারিত দেখান'}
</Button>
</summary>
<div
Expand Down
2 changes: 1 addition & 1 deletion src/components/MDX/Sandpack/CustomPreset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const SandboxShell = memo(function SandboxShell({
className="inline mr-1.5 text-xl"
displayDirection={isExpanded ? 'up' : 'down'}
/>
{isExpanded ? 'কম দেখান' : 'আরো দেখান'}
{isExpanded ? 'সংক্ষেপে দেখান' : 'পুরোটা দেখান'}
</span>
</button>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/MDX/Sandpack/DownloadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ${css}
onClick={downloadHTML}
title="Download Sandbox"
type="button">
<IconDownload className="inline mr-1" /> Download
<IconDownload className="inline mr-1" /> ডাউনলোড
</button>
);
}
2 changes: 1 addition & 1 deletion src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const OpenInCodeSandboxButton = () => {
width="1em"
height="1em"
/>
<span className="hidden md:block">Fork</span>
<span className="hidden md:block">ফর্ক</span>
</UnstyledOpenInCodeSandboxButton>
);
};
2 changes: 1 addition & 1 deletion src/components/MDX/Sandpack/ResetButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function ResetButton({onReset}: ResetButtonProps) {
onClick={onReset}
title="Reset Sandbox"
type="button">
<IconRestart className="inline ml-1 mr-1 relative" /> Reset
<IconRestart className="inline ml-1 mr-1 relative" /> রিসেট
</button>
);
}
188 changes: 94 additions & 94 deletions src/content/learn/manipulating-the-dom-with-refs.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/sidebarLearn.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@
"tags": ["advanced"],
"routes": [
{
"title": "Ref দিয়ে কোন value এর রেফারেন্স দেওয়া",
"title": "Ref এর সাহায্যে ভ্যালু রেফারেন্সিং",
"path": "/learn/referencing-values-with-refs"
},
{
"title": "Manipulating the DOM with Refs",
"title": "Ref ব্যবহার করে DOM ম্যানিপুলেশন",
"path": "/learn/manipulating-the-dom-with-refs"
},
{
Expand Down

0 comments on commit 078ef79

Please sign in to comment.