mirror of
https://github.com/uetchy/namae.git
synced 2025-08-21 02:08:12 +09:00
style: prettier
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import React from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { FaJsSquare } from 'react-icons/fa'
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { FaJsSquare } from 'react-icons/fa';
|
||||
|
||||
import { Card, Repeater, DedicatedAvailability } from '../core'
|
||||
import { Card, Repeater, DedicatedAvailability } from '../core';
|
||||
|
||||
const JsOrgCard: React.FC<{ query: string }> = ({ query }) => {
|
||||
const { t } = useTranslation()
|
||||
const { t } = useTranslation();
|
||||
|
||||
const sanitizedQuery = query.replace(/[^0-9a-zA-Z_-]/g, '').replace(/_/g, '-')
|
||||
const lowerCase = sanitizedQuery.toLowerCase()
|
||||
const sanitizedQuery = query
|
||||
.replace(/[^0-9a-zA-Z_-]/g, '')
|
||||
.replace(/_/g, '-');
|
||||
const lowerCase = sanitizedQuery.toLowerCase();
|
||||
|
||||
const names = [lowerCase]
|
||||
const names = [lowerCase];
|
||||
|
||||
return (
|
||||
<Card title={t('providers.jsorg')}>
|
||||
@@ -28,7 +30,7 @@ const JsOrgCard: React.FC<{ query: string }> = ({ query }) => {
|
||||
)}
|
||||
</Repeater>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default JsOrgCard
|
||||
export default JsOrgCard;
|
||||
|
Reference in New Issue
Block a user