fix: updated post summary
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
19
src/discussions/common/time-locale.js
Normal file
19
src/discussions/common/time-locale.js
Normal 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];
|
||||
}
|
||||
Reference in New Issue
Block a user