Skip to content

Commit c2a5d5a

Browse files
committed
Run prettier
1 parent 02bce98 commit c2a5d5a

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

src/components/ICONS.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ export const ICONS = {
174174
'heart-break': () => import('@iconify-icons/mingcute/heart-crack-line'),
175175
'user-x': () => import('@iconify-icons/mingcute/user-x-line'),
176176
minimize: () => import('@iconify-icons/mingcute/arrows-down-line'),
177-
'font': () => import('@iconify-icons/mingcute/font-line'),
177+
font: () => import('@iconify-icons/mingcute/font-line'),
178178
'brackets-angle': () => import('@iconify-icons/mingcute/brackets-angle-line'),
179-
'asterisk': () => import('@iconify-icons/mingcute/asterisk-line'),
180-
'brackets': () => import('@iconify-icons/mingcute/brackets-line'),
181-
'currency-dollar-2': () => import('@iconify-icons/mingcute/currency-dollar-2-line'),
179+
asterisk: () => import('@iconify-icons/mingcute/asterisk-line'),
180+
brackets: () => import('@iconify-icons/mingcute/brackets-line'),
181+
'currency-dollar-2': () =>
182+
import('@iconify-icons/mingcute/currency-dollar-2-line'),
182183
};

src/components/compose.jsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import Menu2 from '../components/menu2';
2727
import supportedLanguages from '../data/status-supported-languages';
2828
import urlRegex from '../data/url-regex';
2929
import { api } from '../utils/api';
30+
import contentTypesIconMap from '../utils/content-types-icon-map.js';
3031
import db from '../utils/db';
3132
import emojifyText from '../utils/emojify-text';
3233
import i18nDuration from '../utils/i18n-duration';
@@ -51,7 +52,6 @@ import {
5152
import supports from '../utils/supports';
5253
import useCloseWatcher from '../utils/useCloseWatcher';
5354
import useInterval from '../utils/useInterval';
54-
import contentTypesIconMap from '../utils/content-types-icon-map.js';
5555
import visibilityIconsMap from '../utils/visibility-icons-map';
5656

5757
import AccountBlock from './account-block';
@@ -1157,8 +1157,17 @@ function Compose({
11571157
</label>{' '}
11581158
{supports('@akkoma/post-content-type') && (
11591159
<>
1160-
<label class={`toolbar-button ${contentType !== 'text/plain' && !sensitive ? 'show-field' : ''} ${contentType !== 'text/plain' ? 'highlight' : ''}`}>
1161-
<Icon icon={contentTypesIconMap[contentType]} alt={visibility} />
1160+
<label
1161+
class={`toolbar-button ${
1162+
contentType !== 'text/plain' && !sensitive
1163+
? 'show-field'
1164+
: ''
1165+
} ${contentType !== 'text/plain' ? 'highlight' : ''}`}
1166+
>
1167+
<Icon
1168+
icon={contentTypesIconMap[contentType]}
1169+
alt={visibility}
1170+
/>
11621171
<select
11631172
name={'contentType'}
11641173
value={contentType}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
2-
"text/plain": 'font',
3-
"text/html": 'brackets-angle',
4-
"text/markdown": 'asterisk',
5-
"text/bbcode": 'brackets',
6-
"text/x.misskeymarkdown": 'currency-dollar-2',
2+
'text/plain': 'font',
3+
'text/html': 'brackets-angle',
4+
'text/markdown': 'asterisk',
5+
'text/bbcode': 'brackets',
6+
'text/x.misskeymarkdown': 'currency-dollar-2',
77
};

0 commit comments

Comments
 (0)