style: auto format whole project
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
type Values = {
|
||||
[key: string]: any,
|
||||
}
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export default function useFormatMessage(): (id: string, values?: Values) => string {
|
||||
export default function useFormatMessage(): (
|
||||
id: string,
|
||||
values?: Values
|
||||
) => string {
|
||||
const { formatMessage } = useIntl();
|
||||
|
||||
return (id: string, values: Values = {}) => formatMessage({ id }, values);
|
||||
|
Reference in New Issue
Block a user