mirror of
https://github.com/maputnik/editor.git
synced 2026-08-31 17:37:25 +00:00
fa182e66fa
In this PR I have changed some of the jsx files to tsx file. I'm starting off with the "leafs" so that migration of the rest will be easier, hopefully. What I'm basically doing is taking a jsx file, copy paste it into: https://mskelton.dev/ratchet And after that I'm fixing the types as needed. It's not a very long process. Hopefully more PRs will follow and this will be over soon. I don't plan to migrate the storybook as I generally don't understand why is it useful, I'll open an issue to see if anyone thinks differently.
18 lines
314 B
TypeScript
18 lines
314 B
TypeScript
import React from 'react'
|
|
import './SmallError.scss';
|
|
|
|
|
|
type SmallErrorProps = {
|
|
children?: React.ReactNode
|
|
};
|
|
|
|
|
|
export default class SmallError extends React.Component<SmallErrorProps> {
|
|
render () {
|
|
return (
|
|
<div className="SmallError">
|
|
Error: {this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
} |