Skip to content

Commit f161eea

Browse files
committed
feat: 🚸 add deprecation warning to UI
1 parent 2b368e6 commit f161eea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/REPL.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const REPL: React.VFC<ColumnDefinition<any>> = props => {
1313
run,
1414
tests = [],
1515
example = tests.length > 0 ? tests[0].params : {},
16+
deprecated
1617
} = props;
1718

1819
const [result, setResult] = useState<any>();
@@ -37,6 +38,12 @@ const REPL: React.VFC<ColumnDefinition<any>> = props => {
3738

3839
return (
3940
<div className="p-5">
41+
{deprecated ? (
42+
<div className="bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700 p-4 mb-4" role="alert">
43+
<p className="font-bold">Deprecated Column</p>
44+
<p className="my-2">This column has been deprecated. Glide apps which use it will continue to work, but will not appear in new configurations.</p>
45+
</div>
46+
) : null}
4047
<div className="space-y-6">
4148
{Object.values(params).map((p, i) => (
4249
<div key={i}>

0 commit comments

Comments
 (0)