add template 详情
This commit is contained in:
parent
e0fbb1124d
commit
b07992a82a
|
|
@ -538,7 +538,10 @@ const TemplateManagePage: React.FC = () => {
|
||||||
<div className="flex items-center justify-between mb-4">
|
<div className="flex items-center justify-between mb-4">
|
||||||
<h2 className="text-xl font-bold text-gray-900">模板详情</h2>
|
<h2 className="text-xl font-bold text-gray-900">模板详情</h2>
|
||||||
<button
|
<button
|
||||||
onClick={() => setSelectedTemplate(null)}
|
onClick={() => {
|
||||||
|
setSelectedTemplate(null)
|
||||||
|
setTemplateDetail(null)
|
||||||
|
}}
|
||||||
className="text-gray-400 hover:text-gray-600"
|
className="text-gray-400 hover:text-gray-600"
|
||||||
>
|
>
|
||||||
×
|
×
|
||||||
|
|
@ -678,7 +681,10 @@ const TemplateManagePage: React.FC = () => {
|
||||||
|
|
||||||
<div className="flex justify-end space-x-3 pt-4 border-t border-gray-200">
|
<div className="flex justify-end space-x-3 pt-4 border-t border-gray-200">
|
||||||
<button
|
<button
|
||||||
onClick={() => setSelectedTemplate(null)}
|
onClick={() => {
|
||||||
|
setSelectedTemplate(null)
|
||||||
|
setTemplateDetail(null)
|
||||||
|
}}
|
||||||
className="px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 transition-colors"
|
className="px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 transition-colors"
|
||||||
>
|
>
|
||||||
关闭
|
关闭
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue