fix: updated post summary

This commit is contained in:
adeel.tajamul
2022-05-18 19:26:02 +05:00
parent fd984c6ed6
commit 97f60d94f6
12 changed files with 105 additions and 41 deletions

View File

@@ -28,7 +28,7 @@ function AuthorLabel({
}
const labelContents = (
<>
<span className="mr-1">{author}</span>
<span className="mr-1 font-weight-normal font-size-14">{author}</span>
{icon && (
<Icon
style={{
@@ -39,7 +39,7 @@ function AuthorLabel({
/>
)}
{authorLabelMessage && (
<span className="mr-3 ml-1">
<span className="mr-3 ml-1 font-weight-normal font-size-14">
{authorLabelMessage}
</span>
)}

View File

@@ -0,0 +1,19 @@
// eslint-disable-next-line no-unused-vars
export default function timeLocale(number, index, totalSec) {
return [
['just now', 'right now'],
['%ss', 'in %s seconds'],
['1m', 'in 1 minute'],
['%sm', 'in %s minutes'],
['1h', 'in 1 hour'],
['%sh', 'in %s hours'],
['1d', 'in 1 day'],
['%sd', 'in %s days'],
['1w', 'in 1 week'],
['%sw', 'in %s weeks'],
['1M', 'in 1 month'],
['%sM', 'in %s months'],
['1y', 'in 1 year'],
['%sy', 'in %s years'],
][index];
}