update notification screen

This commit is contained in:
Ren Amamiya
2023-08-27 10:38:32 +07:00
parent 53227c7050
commit 963328e064
26 changed files with 275 additions and 188 deletions

View File

@@ -111,7 +111,7 @@ export function Composer() {
await publish({ content: serializedContent, kind: 1, tags });
// send native notifiation
await sendNativeNotification('Publish postr successfully');
await sendNativeNotification('Publish post successfully');
// update state
setStatus('done');
@@ -166,7 +166,7 @@ export function Composer() {
{status === 'loading' ? (
<LoaderIcon className="h-4 w-4 animate-spin text-white" />
) : (
'Postr'
'Post'
)}
</Button>
</div>

View File

@@ -21,7 +21,7 @@ export function ComposerModal() {
<Dialog.Trigger asChild>
<button
type="button"
className="inline-flex h-9 w-min items-center justify-center gap-2 rounded-md bg-white/10 px-6 text-sm font-medium text-white hover:bg-fuchsia-500 focus:outline-none active:translate-y-1"
className="inline-flex h-9 w-max items-center justify-center gap-2 rounded-md bg-white/10 px-4 text-sm font-medium text-white hover:bg-fuchsia-500 focus:outline-none active:translate-y-1"
>
<ComposeIcon className="h-4 w-4" />
Postr
@@ -38,7 +38,7 @@ export function ComposerModal() {
<ChevronRightIcon className="h-4 w-4 text-white/50" />
</span>
<div className="inline-flex h-7 w-max items-center justify-center gap-0.5 rounded bg-white/10 pl-3 pr-1.5 text-sm font-medium text-white">
New Postr
New Post
<ChevronDownIcon className="h-4 w-4" />
</div>
</div>