move move frontend to progress-test
This commit is contained in:
15
app/javascript/components/Alert/Alert.tsx
Normal file
15
app/javascript/components/Alert/Alert.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React, { FC } from "react";
|
||||
|
||||
type Props = {
|
||||
children: any
|
||||
}
|
||||
|
||||
export const Alert: FC<Props> = ({ children }) => (
|
||||
<div
|
||||
className="w-full md:my-2 p-2 bg-red-600 items-center text-red-100 leading-none lg:rounded flex lg:inline-flex"
|
||||
role="alert"
|
||||
>
|
||||
<span className="flex px-2 py-1 font-bold">Oops!</span>
|
||||
<span className="font-semibold mr-2 text-left flex-auto">{children}</span>
|
||||
</div>
|
||||
);
|
||||
1
app/javascript/components/Alert/index.ts
Normal file
1
app/javascript/components/Alert/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { Alert } from "./Alert";
|
||||
Reference in New Issue
Block a user