|
|
@ -119,8 +119,7 @@ const Discover = () => {
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
{isEditing ? (
|
|
|
|
{isEditing ? (
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
<div className="my-6 flex justify-end">
|
|
|
|
<div className="my-6 flex flex-col justify-end space-y-2 md:flex-row md:space-y-0 md:space-x-3">
|
|
|
|
<span className="ml-3 inline-flex rounded-md shadow-sm">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
buttonType="default"
|
|
|
|
buttonType="default"
|
|
|
|
onClick={() => setIsEditing(false)}
|
|
|
|
onClick={() => setIsEditing(false)}
|
|
|
@ -128,21 +127,15 @@ const Discover = () => {
|
|
|
|
<ArrowUturnLeftIcon />
|
|
|
|
<ArrowUturnLeftIcon />
|
|
|
|
<span>{intl.formatMessage(messages.stopediting)}</span>
|
|
|
|
<span>{intl.formatMessage(messages.stopediting)}</span>
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span className="ml-3 inline-flex rounded-md shadow-sm">
|
|
|
|
|
|
|
|
<Tooltip content={intl.formatMessage(messages.resetwarning)}>
|
|
|
|
<Tooltip content={intl.formatMessage(messages.resetwarning)}>
|
|
|
|
<ConfirmButton
|
|
|
|
<ConfirmButton
|
|
|
|
onClick={() => resetSliders()}
|
|
|
|
onClick={() => resetSliders()}
|
|
|
|
confirmText={intl.formatMessage(
|
|
|
|
confirmText={intl.formatMessage(globalMessages.areyousure)}
|
|
|
|
globalMessages.areyousure
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<ArrowPathIcon />
|
|
|
|
<ArrowPathIcon />
|
|
|
|
<span>{intl.formatMessage(messages.resettodefault)}</span>
|
|
|
|
<span>{intl.formatMessage(messages.resettodefault)}</span>
|
|
|
|
</ConfirmButton>
|
|
|
|
</ConfirmButton>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span className="ml-3 inline-flex rounded-md shadow-sm">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
buttonType="primary"
|
|
|
|
buttonType="primary"
|
|
|
|
type="submit"
|
|
|
|
type="submit"
|
|
|
@ -153,10 +146,9 @@ const Discover = () => {
|
|
|
|
<ArrowDownOnSquareIcon />
|
|
|
|
<ArrowDownOnSquareIcon />
|
|
|
|
<span>{intl.formatMessage(globalMessages.save)}</span>
|
|
|
|
<span>{intl.formatMessage(globalMessages.save)}</span>
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="mb-6 rounded-lg bg-gray-800">
|
|
|
|
<div className="mb-6 rounded-lg bg-gray-800">
|
|
|
|
<div className="flex items-center space-x-2 border-t border-l border-r border-gray-800 bg-gray-900 p-4 text-lg font-semibold text-gray-400">
|
|
|
|
<div className="flex items-center space-x-2 rounded-t-lg border-t border-l border-r border-gray-800 bg-gray-900 p-4 text-lg font-semibold text-gray-400">
|
|
|
|
<PlusIcon className="w-6" />
|
|
|
|
<PlusIcon className="w-6" />
|
|
|
|
<span data-testid="create-slider-header">
|
|
|
|
<span data-testid="create-slider-header">
|
|
|
|
{intl.formatMessage(messages.createnewslider)}
|
|
|
|
{intl.formatMessage(messages.createnewslider)}
|
|
|
|