Skip to content

Commit

Permalink
added .github file
Browse files Browse the repository at this point in the history
  • Loading branch information
sajad-ambetdevel committed Feb 1, 2024
1 parent a2665e7 commit d54fe76
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
ignorePatterns: ['dist', 'build', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"type": "module",
"scripts": {
"dev": "vite",
"predeploy":"yarn build",
"deploy":"gh-pages -d build",
"build": "tsc && vite build",
"deploy":"gh-pages -d build",
"predeploy":"yarn build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export function Icon(props: Props): JSX.Element | null | undefined {
'magnifying-glass-plus-solid': <svg xmlns="http://www.w3.org/2000/svg" width={WIDTH} height={HEIGHT} className={CLASS} viewBox="0 0 512 512"><path fill={COLOR} d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24V232h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H232V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z" /></svg>,
'magnifying-glass-minus-solid': <svg xmlns="http://www.w3.org/2000/svg" width={WIDTH} height={HEIGHT} className={CLASS} viewBox="0 0 512 512"><path fill={COLOR} d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM136 184c-13.3 0-24 10.7-24 24s10.7 24 24 24H280c13.3 0 24-10.7 24-24s-10.7-24-24-24H136z" /></svg>,
'rotate-right-solid': <svg xmlns="http://www.w3.org/2000/svg" width={WIDTH} height={HEIGHT} className={CLASS} viewBox="0 0 512 512"><path fill={COLOR} d="M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" /></svg>,
};
return ICONS[props.name];
};
}
return ICONS[props.name]
}

0 comments on commit d54fe76

Please sign in to comment.