Skip to content

Commit

Permalink
BUILT APP
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiyarGHD committed Jul 3, 2024
1 parent 90d61a7 commit 2d35a44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="keyword" content="چیت‌شیت,چیت شیت,راهنما, لاراول,laravel,laravel guide,برگه تقلب,cheat sheet, laravel cheatsheet">
<meta property="og:type" content="website">
<meta property="og:image" content="/favicon.ico">
<script type="module" crossorigin src="/assets/index-B76tb0Ah.js"></script>
<script type="module" crossorigin src="/assets/index-DDXOjVhH.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Bnm5Wat6.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Codeblock.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '../lib/highlightjs/styles/github-dark.min.css';
import php from 'highlight.js/lib/languages/php';
import { isNullOrEmpty } from '../lib/utils';

const Codeblock = ({ hasHighlight = true, language = '', isLineNumberDisabled = false, children }) => {
const Codeblock = ({ hasHighlight = true, language = '', isLineNumberDisabled = false, children = 'hey' }) => {
if (hasHighlight === false)
return (<span className='font-[monospace]'>{children}</span>)

Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export function cn(...inputs) {
}

export function isNullOrEmpty(str) {
return !str;
return !str || str.trim().length === 0;
}

0 comments on commit 2d35a44

Please sign in to comment.